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

[Form] Check for Intl availibility#28610

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
fabpot merged 1 commit intosymfony:masterfromro0NL:form
Sep 29, 2018
Merged

[Form] Check for Intl availibility#28610

fabpot merged 1 commit intosymfony:masterfromro0NL:form
Sep 29, 2018

Conversation

@ro0NL
Copy link
Contributor

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#...
LicenseMIT
Doc PRsymfony/symfony-docs#...

Same as#28513 for the form component

'choice_loader' =>function (Options$options) {
if (!class_exists(Intl::class)) {
thrownewLogicException('The "symfony/intl" component is required to use the Country type.');
}
Copy link
Member

Choose a reason for hiding this comment

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

Could we move this toIntlCallbackChoiceLoader instead?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

the message would be less obvious.. currently it hintsCountry type etc.

xabbuh reacted with thumbs up emoji
$resolver->setDefaults(array(
'choice_loader' =>function (Options$options) {
if (!class_exists(Intl::class)) {
thrownewLogicException('The "symfony/intl" component is required to use the Country type.');
Copy link
Contributor

Choose a reason for hiding this comment

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

I would preferLanguageType:class, to get the FQCN here, same for the other exceptions

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Done.

Copy link
Member

@xabbuhxabbuh left a comment

Choose a reason for hiding this comment

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

but@OskarStark's suggestion to enhance the message sounds good to me

@fabpot
Copy link
Member

Thank you@ro0NL.

@fabpotfabpot merged commit73c688c intosymfony:masterSep 29, 2018
fabpot added a commit that referenced this pull requestSep 29, 2018
This PR was merged into the 4.2-dev branch.Discussion----------[Form] Check for Intl availibility| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->Same as#28513 for the form componentCommits-------73c688c [Form] Check for Intl availibility
@ro0NLro0NL deleted the form branchSeptember 29, 2018 07:26
@nicolas-grekasnicolas-grekas modified the milestones:next,4.2Nov 1, 2018
chalasr pushed a commit to chalasr/symfony that referenced this pull requestDec 28, 2018
nicolas-grekas added a commit that referenced this pull requestJan 3, 2019
…(ro0NL)" (chalasr)This PR was merged into the 4.2 branch.Discussion----------Revert "minor#28610 [Form] Check for Intl availibility (ro0NL)"| Q             | A| ------------- | ---| Branch?       | 4.2| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aIntl is an hard dependency for Form, these checks cannot be reached.Commits-------3ac98a6 Revert "minor#28610 [Form] Check for Intl availibility (ro0NL)"
chalasr pushed a commit that referenced this pull requestJan 4, 2019
* 4.2:  Ensure final input of CommandTester works with default  Do not risk waiting 100 seconds  [Intl] handle null date and time types  Revert "minor#28610 [Form] Check for Intl availibility (ro0NL)"  Do not ignore the choice groups for caching
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OskarStarkOskarStarkOskarStark left review comments

@ycerutoycerutoyceruto left review comments

@fabpotfabpotfabpot approved these changes

@xabbuhxabbuhxabbuh approved these changes

@chalasrchalasrchalasr approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

8 participants

@ro0NL@fabpot@OskarStark@xabbuh@yceruto@chalasr@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp