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] Add note about Intl component#15026

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

Closed
Nyholm wants to merge1 commit intosymfony:5.xfromNyholm:40298-form-intl

Conversation

@Nyholm
Copy link
Member

Documentation for PRsymfony/symfony#40298

The Intl component is not a dependency of the form component anymore.

fabpot added a commit to symfony/symfony that referenced this pull requestFeb 25, 2021
This PR was squashed before being merged into the 5.3-dev branch.Discussion----------[Form] Remove hard dependency on symfony/intl| Q             | A| ------------- | ---| Branch?       | 5.x (or 6.0)| Bug fix?      || New feature?  | no| Deprecations? | yes| Tickets       |Fix#39596| License       | MIT| Doc PR        |symfony/symfony-docs#15026This was voted down in 2018 (#29229) and will revert#29720 by@chalasr. I reopen it because the Form component is way less dependent on Intl component now.Im hesitant if we should do this in 5.x or 6.0. If a user don't have `symfony/intl` installed, they will get an error in runtime. That is something that speaks for doing it in 6.0.Could I get some opinions?### TODO- [x] Update `UPGRADE-x.x.md`Commits-------f90d3ec [Form] Remove hard dependency on symfony/intl
@javiereguiluz
Copy link
Member

Tobias, thanks for proposing these changes. However, in my opinion, we shouldn't merge this. Why? Because this feature has a perfect error message, so I don't think these docs are needed.

If a user tries to use this and doesn't have the Intl component installed, they'll see this message:

https://github.com/symfony/symfony/blob/f0e076a013064b9a1c4c34e1faed8481e10c9988/src/Symfony/Component/Form/Extension/Core/Type/CountryType.php#L32-L34

Although it's concise, it perfectly explains the problem and shows the solution, so I'd say that's enough. But let's wait for other opinions. Thanks!

@Nyholm
Copy link
MemberAuthor

That is fair. But it should definitely be merged in 6.x

@Nyholm
Copy link
MemberAuthor

That is fair. But it should definitely be merged in 6.x

Oh, my bad. I though this was a comment on a different PR.

Im fine with not merging this PR. Im not sure what the praxis is in this scenario. I'll leave this open for a second opinion.

@maxhelias
Copy link
Contributor

I agree with@javiereguiluz 👍 It will mean less maintenance to be done on the documentation

@Nyholm
Copy link
MemberAuthor

Okey. Thank you for the reviews and input.

@NyholmNyholm closed thisMar 9, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhAwaiting requested review from xabbuh

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@Nyholm@javiereguiluz@maxhelias@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp