Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Validator] Add docs for "canonicalize" option atLocale validation constraint#9248

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
javiereguiluz merged 3 commits intosymfony:masterfromphansys:pr_26075
Feb 23, 2018

Conversation

@phansys
Copy link
Contributor

@phansysphansys commentedFeb 12, 2018
edited
Loading

@phansysphansysforce-pushed thepr_26075 branch 2 times, most recently from432ed07 to0761ea9CompareFebruary 12, 2018 01:32
@phansysphansys changed the titleAdd docs for "canonicalize" option atLocale validation constraint[Validator] Add docs for "canonicalize" option atLocale validation constraintFeb 12, 2018
@javiereguiluzjaviereguiluz added the Waiting Code MergeDocs for features pending to be merged labelFeb 12, 2018
@javiereguiluzjaviereguiluz removed the Waiting Code MergeDocs for features pending to be merged labelFeb 20, 2018
Copy link
Member

@javiereguiluzjaviereguiluz left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for this contribution@phansys (and thanks for implementing the feature too). I left some minor comments.

**type**: ``boolean`` **default**: ``false``

..versionadded::4.1
Using this option with value `false` was deprecated in Symfony 4.1 and it will

Choose a reason for hiding this comment

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

In thisversionadded directive, thefalse andfalse code have single backticks but the RST format requires double backticks

Using this option with value `false` was deprecated in Symfony 4.1 and it will
throw an exception in Symfony 5.0, use `true` instead.

If true, then the:phpmethod:`Locale::canonicalize` method will be applied to

Choose a reason for hiding this comment

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

If true, then the ... ->If true, the ... ?

Using this option with value `false` was deprecated in Symfony 4.1 and it will
throw an exception in Symfony 5.0, use `true` instead.

If true, then the:phpmethod:`Locale::canonicalize` method will be applied to

Choose a reason for hiding this comment

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

applied to before... ->applied before...

throw an exception in Symfony 5.0, use `true` instead.

If true, then the:phpmethod:`Locale::canonicalize` method will be applied to
before checking the validity of the given locale.

Choose a reason for hiding this comment

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

Let's add a simple example at the end of this phrase for those who don't fully understand what "canonicalize" means or does. Example:

... before checking the validity of the given locale (e.g. ``FR-fr.utf8``is transformed into ``fr_FR``).

@phansys
Copy link
ContributorAuthor

Your comments were addressed, thank you@javiereguiluz!

@javiereguiluzjaviereguiluz added this to the4.1 milestoneFeb 23, 2018
@javiereguiluz
Copy link
Member

Thanks Javier.

@javiereguiluzjaviereguiluz merged commit14f10bc intosymfony:masterFeb 23, 2018
javiereguiluz added a commit that referenced this pull requestFeb 23, 2018
…` validation constraint (phansys, javiereguiluz)This PR was merged into the master branch.Discussion----------[Validator] Add docs for "canonicalize" option at `Locale` validation constraintRelated tosymfony/symfony#22353,symfony/symfony#26075.Closes#7660.Commits-------14f10bc Final changes4c28e1f Minor changes0cc4ee8 Add docs for "canonicalize" option at `Locale` validation constraint
@phansysphansys deleted the pr_26075 branchFebruary 23, 2018 11:31
xabbuh added a commit to xabbuh/symfony-docs that referenced this pull requestFeb 23, 2018
javiereguiluz added a commit that referenced this pull requestFeb 23, 2018
This PR was merged into the master branch.Discussion----------[#9248] some minor tweaksCommits-------cf9833c [#9248] some minor tweaks
aaa2000 pushed a commit to aaa2000/symfony that referenced this pull requestSep 24, 2018
…n constraint without setting "canonicalize" option to `true` (phansys)This PR was merged into the 4.1-dev branch.Discussion----------[Validator] Deprecate use of `Locale` validation constraint without setting "canonicalize" option to `true`|Q            |A        ||---          |---      ||Branch       |master   ||Bug fix?     |no       ||New feature? |no       ||BC breaks?   |no       ||Deprecations?|yes      ||Tests pass?  |yes      ||Fixed tickets|symfony#22353   ||License      |MIT      ||Doc PR       |symfony/symfony-docs#9248|Seesymfony#22353 (comment).Commits-------1572540 Deprecate use of `Locale` validation constraint without setting "canonicalize" option to `true`
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@javiereguiluzjaviereguiluzjaviereguiluz left review comments

Assignees

No one assigned

Projects

None yet

Milestone

4.1

Development

Successfully merging this pull request may close these issues.

3 participants

@phansys@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp