Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1421dcf

Browse files
[Intl] deprecate polyfills in favor of symfony/polyfill-intl-icu
1 parent 2d7e0b0 commit 1421dcf

43 files changed

Lines changed: 244 additions & 37 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"symfony/contracts": "^2.1",
3030
"symfony/polyfill-ctype": "~1.8",
3131
"symfony/polyfill-intl-grapheme": "~1.0",
32-
"symfony/polyfill-intl-icu": "~1.0",
3332
"symfony/polyfill-intl-idn": "^1.10",
3433
"symfony/polyfill-intl-normalizer": "~1.0",
3534
"symfony/polyfill-mbstring": "~1.0",
@@ -131,6 +130,7 @@
131130
"psr/simple-cache": "^1.0",
132131
"egulias/email-validator": "~1.2,>=1.2.8|~2.0",
133132
"symfony/phpunit-bridge": "^5.2",
133+
"symfony/polyfill-intl-icu": "^1.0",
134134
"symfony/security-acl": "~2.8|~3.0",
135135
"phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0",
136136
"twig/cssinliner-extra": "^2.12",
@@ -157,12 +157,16 @@
157157
"classmap": [
158158
"src/Symfony/Component/Intl/Resources/stubs"
159159
],
160+
"files": [
161+
"src/Symfony/Component/Intl/Resources/functions.php"
162+
],
160163
"exclude-from-classmap": [
161164
"**/Tests/"
162165
]
163166
},
164167
"autoload-dev": {
165168
"files": [
169+
"src/Symfony/Component/Intl/Resources/functions.php",
166170
"src/Symfony/Component/String/Resources/functions.php",
167171
"src/Symfony/Component/VarDumper/Resources/functions/dump.php"
168172
]

src/Symfony/Component/Form/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"symfony/intl": "^4.4|^5.0",
2323
"symfony/options-resolver": "^5.1",
2424
"symfony/polyfill-ctype": "~1.8",
25+
"symfony/polyfill-intl-icu": "^1.12",
2526
"symfony/polyfill-mbstring": "~1.0",
2627
"symfony/polyfill-php80": "^1.15",
2728
"symfony/property-access": "^5.0.8",
@@ -48,7 +49,6 @@
4849
"symfony/error-handler": "<4.4.5",
4950
"symfony/framework-bundle": "<4.4",
5051
"symfony/http-kernel": "<4.4",
51-
"symfony/intl": "<4.4",
5252
"symfony/translation": "<4.4",
5353
"symfony/translation-contracts": "<1.1.7",
5454
"symfony/twig-bridge": "<4.4"

src/Symfony/Component/Intl/Collator/Collator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
* @author Bernhard Schussek <[email protected]>
3333
*
3434
* @internal
35+
*
36+
* @deprecated since Symfony 5.3, use symfony/polyfill-intl-icu ^1.21 instead
3537
*/
3638
abstract class Collator
3739
{

src/Symfony/Component/Intl/DateFormatter/DateFormat/AmPmTransformer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* @author Igor Wiedler <[email protected]>
1818
*
1919
* @internal
20+
*
21+
* @deprecated since Symfony 5.3, use symfony/polyfill-intl-icu ^1.21 instead
2022
*/
2123
class AmPmTransformer extends Transformer
2224
{

src/Symfony/Component/Intl/DateFormatter/DateFormat/DayOfWeekTransformer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* @author Igor Wiedler <[email protected]>
1818
*
1919
* @internal
20+
*
21+
* @deprecated since Symfony 5.3, use symfony/polyfill-intl-icu ^1.21 instead
2022
*/
2123
class DayOfWeekTransformer extends Transformer
2224
{

src/Symfony/Component/Intl/DateFormatter/DateFormat/DayOfYearTransformer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* @author Igor Wiedler <[email protected]>
1818
*
1919
* @internal
20+
*
21+
* @deprecated since Symfony 5.3, use symfony/polyfill-intl-icu ^1.21 instead
2022
*/
2123
class DayOfYearTransformer extends Transformer
2224
{

src/Symfony/Component/Intl/DateFormatter/DateFormat/DayTransformer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* @author Igor Wiedler <[email protected]>
1818
*
1919
* @internal
20+
*
21+
* @deprecated since Symfony 5.3, use symfony/polyfill-intl-icu ^1.21 instead
2022
*/
2123
class DayTransformer extends Transformer
2224
{

src/Symfony/Component/Intl/DateFormatter/DateFormat/FullTransformer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* @author Igor Wiedler <[email protected]>
2121
*
2222
* @internal
23+
*
24+
* @deprecated since Symfony 5.3, use symfony/polyfill-intl-icu ^1.21 instead
2325
*/
2426
class FullTransformer
2527
{

src/Symfony/Component/Intl/DateFormatter/DateFormat/Hour1200Transformer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* @author Igor Wiedler <[email protected]>
1818
*
1919
* @internal
20+
*
21+
* @deprecated since Symfony 5.3, use symfony/polyfill-intl-icu ^1.21 instead
2022
*/
2123
class Hour1200Transformer extends HourTransformer
2224
{

src/Symfony/Component/Intl/DateFormatter/DateFormat/Hour1201Transformer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* @author Igor Wiedler <[email protected]>
1818
*
1919
* @internal
20+
*
21+
* @deprecated since Symfony 5.3, use symfony/polyfill-intl-icu ^1.21 instead
2022
*/
2123
class Hour1201Transformer extends HourTransformer
2224
{

0 commit comments

Comments
 (0)