Skip to content

[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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

Nyholm
Copy link
Member

@Nyholm Nyholm commented Feb 24, 2021

Documentation for PR symfony/symfony#40298

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

@Nyholm Nyholm requested a review from xabbuh as a code owner February 24, 2021 19:09
fabpot added a commit to symfony/symfony that referenced this pull request Feb 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#15026

This 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
Member Author

Nyholm commented Feb 27, 2021

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

@Nyholm
Copy link
Member Author

Nyholm commented Mar 3, 2021

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
Member Author

Nyholm commented Mar 9, 2021

Okey. Thank you for the reviews and input.

@Nyholm Nyholm closed this Mar 9, 2021
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