create-berna-stencil 2.0.9 → 2.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/README.md +1 -1
  2. package/bin/create.js +2 -1
  3. package/package.json +1 -1
  4. package/src/backend/_core/vendor/composer/autoload_static.php +10 -10
  5. package/src/backend/_core/vendor/composer/installed.json +6 -6
  6. package/src/backend/_core/vendor/composer/installed.php +2 -2
  7. package/src/backend/_core/vendor/graham-campbell/result-type/.gitattributes +9 -0
  8. package/src/backend/_core/vendor/graham-campbell/result-type/.github/CODE_OF_CONDUCT.md +132 -0
  9. package/src/backend/_core/vendor/graham-campbell/result-type/.github/CONTRIBUTING.md +31 -0
  10. package/src/backend/_core/vendor/graham-campbell/result-type/.github/FUNDING.yml +2 -0
  11. package/src/backend/_core/vendor/graham-campbell/result-type/.github/SECURITY.md +14 -0
  12. package/src/backend/_core/vendor/graham-campbell/result-type/.github/workflows/stale.yml +11 -0
  13. package/src/backend/_core/vendor/graham-campbell/result-type/.github/workflows/tests.yml +40 -0
  14. package/src/backend/_core/vendor/graham-campbell/result-type/CHANGELOG.md +53 -0
  15. package/src/backend/_core/vendor/graham-campbell/result-type/LICENSE +21 -21
  16. package/src/backend/_core/vendor/graham-campbell/result-type/README.md +42 -0
  17. package/src/backend/_core/vendor/graham-campbell/result-type/composer.json +33 -33
  18. package/src/backend/_core/vendor/graham-campbell/result-type/phpunit.xml.dist +13 -0
  19. package/src/backend/_core/vendor/graham-campbell/result-type/src/Error.php +121 -121
  20. package/src/backend/_core/vendor/graham-campbell/result-type/src/Result.php +69 -69
  21. package/src/backend/_core/vendor/graham-campbell/result-type/src/Success.php +120 -120
  22. package/src/backend/_core/vendor/graham-campbell/result-type/tests/ResultTest.php +95 -0
  23. package/src/backend/_core/vendor/phpoption/phpoption/.gitattributes +13 -0
  24. package/src/backend/_core/vendor/phpoption/phpoption/.github/CODE_OF_CONDUCT.md +132 -0
  25. package/src/backend/_core/vendor/phpoption/phpoption/.github/CONTRIBUTING.md +30 -0
  26. package/src/backend/_core/vendor/phpoption/phpoption/.github/FUNDING.yml +2 -0
  27. package/src/backend/_core/vendor/phpoption/phpoption/.github/SECURITY.md +14 -0
  28. package/src/backend/_core/vendor/phpoption/phpoption/.github/workflows/static.yml +40 -0
  29. package/src/backend/_core/vendor/phpoption/phpoption/.github/workflows/tests.yml +40 -0
  30. package/src/backend/_core/vendor/phpoption/phpoption/LICENSE +200 -200
  31. package/src/backend/_core/vendor/phpoption/phpoption/Makefile +17 -0
  32. package/src/backend/_core/vendor/phpoption/phpoption/README.md +201 -0
  33. package/src/backend/_core/vendor/phpoption/phpoption/composer.json +50 -50
  34. package/src/backend/_core/vendor/phpoption/phpoption/phpstan-baseline.neon +44 -0
  35. package/src/backend/_core/vendor/phpoption/phpoption/phpstan.neon.dist +7 -0
  36. package/src/backend/_core/vendor/phpoption/phpoption/phpunit.xml.dist +13 -0
  37. package/src/backend/_core/vendor/phpoption/phpoption/src/PhpOption/LazyOption.php +175 -175
  38. package/src/backend/_core/vendor/phpoption/phpoption/src/PhpOption/None.php +136 -136
  39. package/src/backend/_core/vendor/phpoption/phpoption/src/PhpOption/Option.php +434 -434
  40. package/src/backend/_core/vendor/phpoption/phpoption/src/PhpOption/Some.php +169 -169
  41. package/src/backend/_core/vendor/phpoption/phpoption/tests/PhpOption/Tests/EnsureTest.php +72 -0
  42. package/src/backend/_core/vendor/phpoption/phpoption/tests/PhpOption/Tests/LazyOptionTest.php +357 -0
  43. package/src/backend/_core/vendor/phpoption/phpoption/tests/PhpOption/Tests/NoneTest.php +153 -0
  44. package/src/backend/_core/vendor/phpoption/phpoption/tests/PhpOption/Tests/OptionTest.php +166 -0
  45. package/src/backend/_core/vendor/phpoption/phpoption/tests/PhpOption/Tests/SomeTest.php +194 -0
  46. package/src/backend/_core/vendor/phpoption/phpoption/tests/bootstrap.php +8 -0
  47. package/src/backend/_core/vendor/phpoption/phpoption/vendor-bin/phpstan/composer.json +8 -0
  48. package/src/backend/_core/vendor/symfony/polyfill-ctype/Ctype.php +232 -232
  49. package/src/backend/_core/vendor/symfony/polyfill-ctype/LICENSE +19 -19
  50. package/src/backend/_core/vendor/symfony/polyfill-ctype/README.md +12 -12
  51. package/src/backend/_core/vendor/symfony/polyfill-ctype/bootstrap.php +50 -50
  52. package/src/backend/_core/vendor/symfony/polyfill-ctype/bootstrap80.php +46 -46
  53. package/src/backend/_core/vendor/symfony/polyfill-ctype/composer.json +38 -38
  54. package/src/backend/_core/vendor/symfony/polyfill-mbstring/LICENSE +19 -19
  55. package/src/backend/_core/vendor/symfony/polyfill-mbstring/Mbstring.php +1077 -1077
  56. package/src/backend/_core/vendor/symfony/polyfill-mbstring/README.md +13 -13
  57. package/src/backend/_core/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php +119 -119
  58. package/src/backend/_core/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php +1397 -1397
  59. package/src/backend/_core/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php +5 -5
  60. package/src/backend/_core/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php +1489 -1489
  61. package/src/backend/_core/vendor/symfony/polyfill-mbstring/bootstrap.php +171 -171
  62. package/src/backend/_core/vendor/symfony/polyfill-mbstring/bootstrap80.php +167 -167
  63. package/src/backend/_core/vendor/symfony/polyfill-mbstring/composer.json +39 -39
  64. package/src/backend/_core/vendor/symfony/polyfill-php80/LICENSE +19 -19
  65. package/src/backend/_core/vendor/symfony/polyfill-php80/Php80.php +115 -115
  66. package/src/backend/_core/vendor/symfony/polyfill-php80/PhpToken.php +106 -106
  67. package/src/backend/_core/vendor/symfony/polyfill-php80/README.md +25 -25
  68. package/src/backend/_core/vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php +31 -31
  69. package/src/backend/_core/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php +16 -16
  70. package/src/backend/_core/vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php +20 -20
  71. package/src/backend/_core/vendor/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php +16 -16
  72. package/src/backend/_core/vendor/symfony/polyfill-php80/Resources/stubs/ValueError.php +16 -16
  73. package/src/backend/_core/vendor/symfony/polyfill-php80/bootstrap.php +42 -42
  74. package/src/backend/_core/vendor/symfony/polyfill-php80/composer.json +37 -37
  75. package/src/backend/_core/vendor/vlucas/phpdotenv/.editorconfig +15 -0
  76. package/src/backend/_core/vendor/vlucas/phpdotenv/.gitattributes +15 -0
  77. package/src/backend/_core/vendor/vlucas/phpdotenv/.github/CODE_OF_CONDUCT.md +132 -0
  78. package/src/backend/_core/vendor/vlucas/phpdotenv/.github/CONTRIBUTING.md +30 -0
  79. package/src/backend/_core/vendor/vlucas/phpdotenv/.github/FUNDING.yml +2 -0
  80. package/src/backend/_core/vendor/vlucas/phpdotenv/.github/SECURITY.md +14 -0
  81. package/src/backend/_core/vendor/vlucas/phpdotenv/.github/workflows/static.yml +40 -0
  82. package/src/backend/_core/vendor/vlucas/phpdotenv/.github/workflows/tests.yml +70 -0
  83. package/src/backend/_core/vendor/vlucas/phpdotenv/LICENSE +30 -30
  84. package/src/backend/_core/vendor/vlucas/phpdotenv/Makefile +17 -0
  85. package/src/backend/_core/vendor/vlucas/phpdotenv/README.md +370 -0
  86. package/src/backend/_core/vendor/vlucas/phpdotenv/UPGRADING.md +196 -0
  87. package/src/backend/_core/vendor/vlucas/phpdotenv/composer.json +60 -60
  88. package/src/backend/_core/vendor/vlucas/phpdotenv/phpstan-baseline.neon +157 -0
  89. package/src/backend/_core/vendor/vlucas/phpdotenv/phpstan.neon.dist +7 -0
  90. package/src/backend/_core/vendor/vlucas/phpdotenv/phpunit.xml.dist +13 -0
  91. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Dotenv.php +267 -267
  92. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Exception/ExceptionInterface.php +12 -12
  93. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Exception/InvalidEncodingException.php +12 -12
  94. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Exception/InvalidFileException.php +12 -12
  95. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Exception/InvalidPathException.php +12 -12
  96. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Exception/ValidationException.php +12 -12
  97. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Loader/Loader.php +48 -48
  98. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Loader/LoaderInterface.php +20 -20
  99. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Loader/Resolver.php +65 -65
  100. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Parser/Entry.php +59 -59
  101. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Parser/EntryParser.php +299 -299
  102. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Parser/Lexer.php +58 -58
  103. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Parser/Lines.php +127 -127
  104. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Parser/Parser.php +53 -53
  105. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Parser/ParserInterface.php +19 -19
  106. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Parser/Value.php +88 -88
  107. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php +15 -15
  108. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ApacheAdapter.php +89 -89
  109. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ArrayAdapter.php +80 -80
  110. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/EnvConstAdapter.php +88 -88
  111. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/GuardedWriter.php +85 -85
  112. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ImmutableWriter.php +110 -110
  113. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiReader.php +48 -48
  114. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiWriter.php +64 -64
  115. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/PutenvAdapter.php +91 -91
  116. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReaderInterface.php +17 -17
  117. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReplacingWriter.php +104 -104
  118. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/ServerConstAdapter.php +88 -88
  119. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/Adapter/WriterInterface.php +27 -27
  120. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/AdapterRepository.php +107 -107
  121. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/RepositoryBuilder.php +272 -272
  122. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Repository/RepositoryInterface.php +51 -51
  123. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Store/File/Paths.php +44 -44
  124. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Store/File/Reader.php +81 -81
  125. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Store/FileStore.php +72 -72
  126. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Store/StoreBuilder.php +141 -141
  127. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Store/StoreInterface.php +17 -17
  128. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Store/StringStore.php +37 -37
  129. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Util/Regex.php +112 -112
  130. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Util/Str.php +108 -108
  131. package/src/backend/_core/vendor/vlucas/phpdotenv/src/Validator.php +207 -207
  132. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/DotenvTest.php +387 -0
  133. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Loader/LoaderTest.php +86 -0
  134. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/EntryParserTest.php +234 -0
  135. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/LexerTest.php +40 -0
  136. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/LinesTest.php +53 -0
  137. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Parser/ParserTest.php +98 -0
  138. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/ArrayAdapterTest.php +57 -0
  139. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/EnvConstAdapterTest.php +75 -0
  140. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/PutenvAdapterTest.php +52 -0
  141. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/Adapter/ServerConstAdapterTest.php +75 -0
  142. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Repository/RepositoryTest.php +305 -0
  143. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/Store/StoreTest.php +141 -0
  144. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/Dotenv/ValidatorTest.php +479 -0
  145. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/.env +5 -0
  146. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/assertions.env +18 -0
  147. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/booleans.env +33 -0
  148. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/commented.env +15 -0
  149. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/empty.env +1 -0
  150. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/example.env +1 -0
  151. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/exported.env +7 -0
  152. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/immutable.env +1 -0
  153. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/integers.env +17 -0
  154. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/large.env +2 -0
  155. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/multibyte.env +3 -0
  156. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/multiline.env +14 -0
  157. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/multiple.env +4 -0
  158. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/mutable.env +1 -0
  159. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/nested.env +15 -0
  160. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/quoted.env +11 -0
  161. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/specialchars.env +8 -0
  162. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/unicodevarnames.env +2 -0
  163. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/utf8-with-bom-encoding.env +3 -0
  164. package/src/backend/_core/vendor/vlucas/phpdotenv/tests/fixtures/env/windows.env +1 -0
  165. package/src/backend/_core/vendor/vlucas/phpdotenv/vendor-bin/phpstan/composer.json +15 -0
  166. package/src/backend/config.php +19 -0
  167. package/src/frontend/data/site.json +43 -43
@@ -1,171 +1,171 @@
1
- <?php
2
-
3
- /*
4
- * This file is part of the Symfony package.
5
- *
6
- * (c) Fabien Potencier <fabien@symfony.com>
7
- *
8
- * For the full copyright and license information, please view the LICENSE
9
- * file that was distributed with this source code.
10
- */
11
-
12
- use Symfony\Polyfill\Mbstring as p;
13
-
14
- if (\PHP_VERSION_ID >= 80000) {
15
- return require __DIR__.'/bootstrap80.php';
16
- }
17
-
18
- if (!function_exists('mb_convert_encoding')) {
19
- function mb_convert_encoding($string, $to_encoding, $from_encoding = null) { return p\Mbstring::mb_convert_encoding($string, $to_encoding, $from_encoding); }
20
- }
21
- if (!function_exists('mb_decode_mimeheader')) {
22
- function mb_decode_mimeheader($string) { return p\Mbstring::mb_decode_mimeheader($string); }
23
- }
24
- if (!function_exists('mb_encode_mimeheader')) {
25
- function mb_encode_mimeheader($string, $charset = null, $transfer_encoding = null, $newline = "\r\n", $indent = 0) { return p\Mbstring::mb_encode_mimeheader($string, $charset, $transfer_encoding, $newline, $indent); }
26
- }
27
- if (!function_exists('mb_decode_numericentity')) {
28
- function mb_decode_numericentity($string, $map, $encoding = null) { return p\Mbstring::mb_decode_numericentity($string, $map, $encoding); }
29
- }
30
- if (!function_exists('mb_encode_numericentity')) {
31
- function mb_encode_numericentity($string, $map, $encoding = null, $hex = false) { return p\Mbstring::mb_encode_numericentity($string, $map, $encoding, $hex); }
32
- }
33
- if (!function_exists('mb_convert_case')) {
34
- function mb_convert_case($string, $mode, $encoding = null) { return p\Mbstring::mb_convert_case($string, $mode, $encoding); }
35
- }
36
- if (!function_exists('mb_internal_encoding')) {
37
- function mb_internal_encoding($encoding = null) { return p\Mbstring::mb_internal_encoding($encoding); }
38
- }
39
- if (!function_exists('mb_language')) {
40
- function mb_language($language = null) { return p\Mbstring::mb_language($language); }
41
- }
42
- if (!function_exists('mb_list_encodings')) {
43
- function mb_list_encodings() { return p\Mbstring::mb_list_encodings(); }
44
- }
45
- if (!function_exists('mb_encoding_aliases')) {
46
- function mb_encoding_aliases($encoding) { return p\Mbstring::mb_encoding_aliases($encoding); }
47
- }
48
- if (!function_exists('mb_check_encoding')) {
49
- function mb_check_encoding($value = null, $encoding = null) { return p\Mbstring::mb_check_encoding($value, $encoding); }
50
- }
51
- if (!function_exists('mb_detect_encoding')) {
52
- function mb_detect_encoding($string, $encodings = null, $strict = false) { return p\Mbstring::mb_detect_encoding($string, $encodings, $strict); }
53
- }
54
- if (!function_exists('mb_detect_order')) {
55
- function mb_detect_order($encoding = null) { return p\Mbstring::mb_detect_order($encoding); }
56
- }
57
- if (!function_exists('mb_parse_str')) {
58
- function mb_parse_str($string, &$result = []) { parse_str($string, $result); return (bool) $result; }
59
- }
60
- if (!function_exists('mb_strlen')) {
61
- function mb_strlen($string, $encoding = null) { return p\Mbstring::mb_strlen($string, $encoding); }
62
- }
63
- if (!function_exists('mb_strpos')) {
64
- function mb_strpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strpos($haystack, $needle, $offset, $encoding); }
65
- }
66
- if (!function_exists('mb_strtolower')) {
67
- function mb_strtolower($string, $encoding = null) { return p\Mbstring::mb_strtolower($string, $encoding); }
68
- }
69
- if (!function_exists('mb_strtoupper')) {
70
- function mb_strtoupper($string, $encoding = null) { return p\Mbstring::mb_strtoupper($string, $encoding); }
71
- }
72
- if (!function_exists('mb_substitute_character')) {
73
- function mb_substitute_character($substitute_character = null) { return p\Mbstring::mb_substitute_character($substitute_character); }
74
- }
75
- if (!function_exists('mb_substr')) {
76
- function mb_substr($string, $start, $length = 2147483647, $encoding = null) { return p\Mbstring::mb_substr($string, $start, $length, $encoding); }
77
- }
78
- if (!function_exists('mb_stripos')) {
79
- function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_stripos($haystack, $needle, $offset, $encoding); }
80
- }
81
- if (!function_exists('mb_stristr')) {
82
- function mb_stristr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_stristr($haystack, $needle, $before_needle, $encoding); }
83
- }
84
- if (!function_exists('mb_strrchr')) {
85
- function mb_strrchr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strrchr($haystack, $needle, $before_needle, $encoding); }
86
- }
87
- if (!function_exists('mb_strrichr')) {
88
- function mb_strrichr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strrichr($haystack, $needle, $before_needle, $encoding); }
89
- }
90
- if (!function_exists('mb_strripos')) {
91
- function mb_strripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strripos($haystack, $needle, $offset, $encoding); }
92
- }
93
- if (!function_exists('mb_strrpos')) {
94
- function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strrpos($haystack, $needle, $offset, $encoding); }
95
- }
96
- if (!function_exists('mb_strstr')) {
97
- function mb_strstr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strstr($haystack, $needle, $before_needle, $encoding); }
98
- }
99
- if (!function_exists('mb_get_info')) {
100
- function mb_get_info($type = 'all') { return p\Mbstring::mb_get_info($type); }
101
- }
102
- if (!function_exists('mb_http_output')) {
103
- function mb_http_output($encoding = null) { return p\Mbstring::mb_http_output($encoding); }
104
- }
105
- if (!function_exists('mb_strwidth')) {
106
- function mb_strwidth($string, $encoding = null) { return p\Mbstring::mb_strwidth($string, $encoding); }
107
- }
108
- if (!function_exists('mb_substr_count')) {
109
- function mb_substr_count($haystack, $needle, $encoding = null) { return p\Mbstring::mb_substr_count($haystack, $needle, $encoding); }
110
- }
111
- if (!function_exists('mb_output_handler')) {
112
- function mb_output_handler($string, $status) { return p\Mbstring::mb_output_handler($string, $status); }
113
- }
114
- if (!function_exists('mb_http_input')) {
115
- function mb_http_input($type = null) { return p\Mbstring::mb_http_input($type); }
116
- }
117
-
118
- if (!function_exists('mb_convert_variables')) {
119
- function mb_convert_variables($to_encoding, $from_encoding, &...$vars) { return p\Mbstring::mb_convert_variables($to_encoding, $from_encoding, ...$vars); }
120
- }
121
-
122
- if (!function_exists('mb_ord')) {
123
- function mb_ord($string, $encoding = null) { return p\Mbstring::mb_ord($string, $encoding); }
124
- }
125
- if (!function_exists('mb_chr')) {
126
- function mb_chr($codepoint, $encoding = null) { return p\Mbstring::mb_chr($codepoint, $encoding); }
127
- }
128
- if (!function_exists('mb_scrub')) {
129
- function mb_scrub($string, $encoding = null) { $encoding = null === $encoding ? mb_internal_encoding() : $encoding; return mb_convert_encoding($string, $encoding, $encoding); }
130
- }
131
- if (!function_exists('mb_str_split')) {
132
- function mb_str_split($string, $length = 1, $encoding = null) { return p\Mbstring::mb_str_split($string, $length, $encoding); }
133
- }
134
-
135
- if (!function_exists('mb_str_pad')) {
136
- function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = STR_PAD_RIGHT, ?string $encoding = null) { return p\Mbstring::mb_str_pad($string, $length, $pad_string, $pad_type, $encoding); }
137
- }
138
-
139
- if (!function_exists('mb_ucfirst')) {
140
- function mb_ucfirst(string $string, ?string $encoding = null) { return p\Mbstring::mb_ucfirst($string, $encoding); }
141
- }
142
-
143
- if (!function_exists('mb_lcfirst')) {
144
- function mb_lcfirst(string $string, ?string $encoding = null) { return p\Mbstring::mb_lcfirst($string, $encoding); }
145
- }
146
-
147
- if (!function_exists('mb_trim')) {
148
- function mb_trim(string $string, ?string $characters = null, ?string $encoding = null) { return p\Mbstring::mb_trim($string, $characters, $encoding); }
149
- }
150
-
151
- if (!function_exists('mb_ltrim')) {
152
- function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null) { return p\Mbstring::mb_ltrim($string, $characters, $encoding); }
153
- }
154
-
155
- if (!function_exists('mb_rtrim')) {
156
- function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null) { return p\Mbstring::mb_rtrim($string, $characters, $encoding); }
157
- }
158
-
159
- if (extension_loaded('mbstring')) {
160
- return;
161
- }
162
-
163
- if (!defined('MB_CASE_UPPER')) {
164
- define('MB_CASE_UPPER', 0);
165
- }
166
- if (!defined('MB_CASE_LOWER')) {
167
- define('MB_CASE_LOWER', 1);
168
- }
169
- if (!defined('MB_CASE_TITLE')) {
170
- define('MB_CASE_TITLE', 2);
171
- }
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the Symfony package.
5
+ *
6
+ * (c) Fabien Potencier <fabien@symfony.com>
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ use Symfony\Polyfill\Mbstring as p;
13
+
14
+ if (\PHP_VERSION_ID >= 80000) {
15
+ return require __DIR__.'/bootstrap80.php';
16
+ }
17
+
18
+ if (!function_exists('mb_convert_encoding')) {
19
+ function mb_convert_encoding($string, $to_encoding, $from_encoding = null) { return p\Mbstring::mb_convert_encoding($string, $to_encoding, $from_encoding); }
20
+ }
21
+ if (!function_exists('mb_decode_mimeheader')) {
22
+ function mb_decode_mimeheader($string) { return p\Mbstring::mb_decode_mimeheader($string); }
23
+ }
24
+ if (!function_exists('mb_encode_mimeheader')) {
25
+ function mb_encode_mimeheader($string, $charset = null, $transfer_encoding = null, $newline = "\r\n", $indent = 0) { return p\Mbstring::mb_encode_mimeheader($string, $charset, $transfer_encoding, $newline, $indent); }
26
+ }
27
+ if (!function_exists('mb_decode_numericentity')) {
28
+ function mb_decode_numericentity($string, $map, $encoding = null) { return p\Mbstring::mb_decode_numericentity($string, $map, $encoding); }
29
+ }
30
+ if (!function_exists('mb_encode_numericentity')) {
31
+ function mb_encode_numericentity($string, $map, $encoding = null, $hex = false) { return p\Mbstring::mb_encode_numericentity($string, $map, $encoding, $hex); }
32
+ }
33
+ if (!function_exists('mb_convert_case')) {
34
+ function mb_convert_case($string, $mode, $encoding = null) { return p\Mbstring::mb_convert_case($string, $mode, $encoding); }
35
+ }
36
+ if (!function_exists('mb_internal_encoding')) {
37
+ function mb_internal_encoding($encoding = null) { return p\Mbstring::mb_internal_encoding($encoding); }
38
+ }
39
+ if (!function_exists('mb_language')) {
40
+ function mb_language($language = null) { return p\Mbstring::mb_language($language); }
41
+ }
42
+ if (!function_exists('mb_list_encodings')) {
43
+ function mb_list_encodings() { return p\Mbstring::mb_list_encodings(); }
44
+ }
45
+ if (!function_exists('mb_encoding_aliases')) {
46
+ function mb_encoding_aliases($encoding) { return p\Mbstring::mb_encoding_aliases($encoding); }
47
+ }
48
+ if (!function_exists('mb_check_encoding')) {
49
+ function mb_check_encoding($value = null, $encoding = null) { return p\Mbstring::mb_check_encoding($value, $encoding); }
50
+ }
51
+ if (!function_exists('mb_detect_encoding')) {
52
+ function mb_detect_encoding($string, $encodings = null, $strict = false) { return p\Mbstring::mb_detect_encoding($string, $encodings, $strict); }
53
+ }
54
+ if (!function_exists('mb_detect_order')) {
55
+ function mb_detect_order($encoding = null) { return p\Mbstring::mb_detect_order($encoding); }
56
+ }
57
+ if (!function_exists('mb_parse_str')) {
58
+ function mb_parse_str($string, &$result = []) { parse_str($string, $result); return (bool) $result; }
59
+ }
60
+ if (!function_exists('mb_strlen')) {
61
+ function mb_strlen($string, $encoding = null) { return p\Mbstring::mb_strlen($string, $encoding); }
62
+ }
63
+ if (!function_exists('mb_strpos')) {
64
+ function mb_strpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strpos($haystack, $needle, $offset, $encoding); }
65
+ }
66
+ if (!function_exists('mb_strtolower')) {
67
+ function mb_strtolower($string, $encoding = null) { return p\Mbstring::mb_strtolower($string, $encoding); }
68
+ }
69
+ if (!function_exists('mb_strtoupper')) {
70
+ function mb_strtoupper($string, $encoding = null) { return p\Mbstring::mb_strtoupper($string, $encoding); }
71
+ }
72
+ if (!function_exists('mb_substitute_character')) {
73
+ function mb_substitute_character($substitute_character = null) { return p\Mbstring::mb_substitute_character($substitute_character); }
74
+ }
75
+ if (!function_exists('mb_substr')) {
76
+ function mb_substr($string, $start, $length = 2147483647, $encoding = null) { return p\Mbstring::mb_substr($string, $start, $length, $encoding); }
77
+ }
78
+ if (!function_exists('mb_stripos')) {
79
+ function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_stripos($haystack, $needle, $offset, $encoding); }
80
+ }
81
+ if (!function_exists('mb_stristr')) {
82
+ function mb_stristr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_stristr($haystack, $needle, $before_needle, $encoding); }
83
+ }
84
+ if (!function_exists('mb_strrchr')) {
85
+ function mb_strrchr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strrchr($haystack, $needle, $before_needle, $encoding); }
86
+ }
87
+ if (!function_exists('mb_strrichr')) {
88
+ function mb_strrichr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strrichr($haystack, $needle, $before_needle, $encoding); }
89
+ }
90
+ if (!function_exists('mb_strripos')) {
91
+ function mb_strripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strripos($haystack, $needle, $offset, $encoding); }
92
+ }
93
+ if (!function_exists('mb_strrpos')) {
94
+ function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strrpos($haystack, $needle, $offset, $encoding); }
95
+ }
96
+ if (!function_exists('mb_strstr')) {
97
+ function mb_strstr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strstr($haystack, $needle, $before_needle, $encoding); }
98
+ }
99
+ if (!function_exists('mb_get_info')) {
100
+ function mb_get_info($type = 'all') { return p\Mbstring::mb_get_info($type); }
101
+ }
102
+ if (!function_exists('mb_http_output')) {
103
+ function mb_http_output($encoding = null) { return p\Mbstring::mb_http_output($encoding); }
104
+ }
105
+ if (!function_exists('mb_strwidth')) {
106
+ function mb_strwidth($string, $encoding = null) { return p\Mbstring::mb_strwidth($string, $encoding); }
107
+ }
108
+ if (!function_exists('mb_substr_count')) {
109
+ function mb_substr_count($haystack, $needle, $encoding = null) { return p\Mbstring::mb_substr_count($haystack, $needle, $encoding); }
110
+ }
111
+ if (!function_exists('mb_output_handler')) {
112
+ function mb_output_handler($string, $status) { return p\Mbstring::mb_output_handler($string, $status); }
113
+ }
114
+ if (!function_exists('mb_http_input')) {
115
+ function mb_http_input($type = null) { return p\Mbstring::mb_http_input($type); }
116
+ }
117
+
118
+ if (!function_exists('mb_convert_variables')) {
119
+ function mb_convert_variables($to_encoding, $from_encoding, &...$vars) { return p\Mbstring::mb_convert_variables($to_encoding, $from_encoding, ...$vars); }
120
+ }
121
+
122
+ if (!function_exists('mb_ord')) {
123
+ function mb_ord($string, $encoding = null) { return p\Mbstring::mb_ord($string, $encoding); }
124
+ }
125
+ if (!function_exists('mb_chr')) {
126
+ function mb_chr($codepoint, $encoding = null) { return p\Mbstring::mb_chr($codepoint, $encoding); }
127
+ }
128
+ if (!function_exists('mb_scrub')) {
129
+ function mb_scrub($string, $encoding = null) { $encoding = null === $encoding ? mb_internal_encoding() : $encoding; return mb_convert_encoding($string, $encoding, $encoding); }
130
+ }
131
+ if (!function_exists('mb_str_split')) {
132
+ function mb_str_split($string, $length = 1, $encoding = null) { return p\Mbstring::mb_str_split($string, $length, $encoding); }
133
+ }
134
+
135
+ if (!function_exists('mb_str_pad')) {
136
+ function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = STR_PAD_RIGHT, ?string $encoding = null) { return p\Mbstring::mb_str_pad($string, $length, $pad_string, $pad_type, $encoding); }
137
+ }
138
+
139
+ if (!function_exists('mb_ucfirst')) {
140
+ function mb_ucfirst(string $string, ?string $encoding = null) { return p\Mbstring::mb_ucfirst($string, $encoding); }
141
+ }
142
+
143
+ if (!function_exists('mb_lcfirst')) {
144
+ function mb_lcfirst(string $string, ?string $encoding = null) { return p\Mbstring::mb_lcfirst($string, $encoding); }
145
+ }
146
+
147
+ if (!function_exists('mb_trim')) {
148
+ function mb_trim(string $string, ?string $characters = null, ?string $encoding = null) { return p\Mbstring::mb_trim($string, $characters, $encoding); }
149
+ }
150
+
151
+ if (!function_exists('mb_ltrim')) {
152
+ function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null) { return p\Mbstring::mb_ltrim($string, $characters, $encoding); }
153
+ }
154
+
155
+ if (!function_exists('mb_rtrim')) {
156
+ function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null) { return p\Mbstring::mb_rtrim($string, $characters, $encoding); }
157
+ }
158
+
159
+ if (extension_loaded('mbstring')) {
160
+ return;
161
+ }
162
+
163
+ if (!defined('MB_CASE_UPPER')) {
164
+ define('MB_CASE_UPPER', 0);
165
+ }
166
+ if (!defined('MB_CASE_LOWER')) {
167
+ define('MB_CASE_LOWER', 1);
168
+ }
169
+ if (!defined('MB_CASE_TITLE')) {
170
+ define('MB_CASE_TITLE', 2);
171
+ }