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

Skip to content

[LocaleValidator] Use Symfony\Component\Intl\Locale instead of \Locale + read aliases from bundle only if it is required #26069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 7, 2018

Conversation

phansys
Copy link
Contributor

@phansys phansys commented Feb 7, 2018

Q A
Branch master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

@phansys phansys changed the title Use Symfony\Component\Intl\Locale instead of \Locale + read aliases from bundle only if it is required [LocaleValidator] Use Symfony\Component\Intl\Locale instead of \Locale + read aliases from bundle only if it is required Feb 7, 2018
@fabpot
Copy link
Member

fabpot commented Feb 7, 2018

Good catch, thanks @phansys.

@fabpot fabpot merged commit 63497e1 into symfony:master Feb 7, 2018
fabpot added a commit that referenced this pull request Feb 7, 2018
…stead of `\Locale` + read aliases from bundle only if it is required (phansys)

This PR was merged into the 4.1-dev branch.

Discussion
----------

[LocaleValidator] Use `Symfony\Component\Intl\Locale` instead of `\Locale` + read aliases from bundle only if it is required

|Q            |A     |
|---          |---   |
|Branch       |master|
|Bug fix?     |no    |
|New feature? |no    |
|BC breaks?   |no    |
|Deprecations?|no    |
|Tests pass?  |yes   |
|Fixed tickets|n/a   |
|License      |MIT   |
|Doc PR       |n/a   |

Commits
-------

63497e1 Use `Symfony\Component\Intl\Locale` instead of `\Locale` + read aliases from bundle only if it is required
@phansys phansys deleted the locale_validator branch February 7, 2018 13:19
@@ -42,12 +43,12 @@ public function validate($value, Constraint $constraint)

$value = (string) $value;
if ($constraint->canonicalize) {
$value = \Locale::canonicalize($value);
$value = IntlLocale::canonicalize($value);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverted in #26152

nicolas-grekas added a commit that referenced this pull request Feb 12, 2018
…s-grekas)

This PR was merged into the 4.1-dev branch.

Discussion
----------

[Intl] Add polyfill for Locale::canonicalize()

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Required after #26069

Commits
-------

972a330 [Intl] Add polyfill for Locale::canonicalize()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants