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] Remove hard dependency on symfony/intl#40298

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:5.xfromNyholm:form-intl
Feb 25, 2021

Conversation

@Nyholm
Copy link
Member

@NyholmNyholm commentedFeb 24, 2021
edited
Loading

QA
Branch?5.x (or 6.0)
Bug fix?
New feature?no
Deprecations?yes
TicketsFix#39596
LicenseMIT
Doc PRsymfony/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 havesymfony/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

  • UpdateUPGRADE-x.x.md

ro0NL and alamirault reacted with thumbs up emoji
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment
edited
Loading

Choose a reason for hiding this comment

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

I'm fine doing it in 5.x personally.
Of course, this should be documented in CHANGELOG+UPGRADE files, in the doc,and the website-skeleton also should be updated (it has explicit "intl" as a dep since 2018).

@Nyholm
Copy link
MemberAuthor

The PR is updated and documentation is added.


if ($options['intl']) {
if (!class_exists(Intl::class)) {
thrownewLogicException(sprintf('The "symfony/intl" component is required to use "%s" with option "intl=true". Try running "composer require symfony/intl".',static::class));
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Note that this exception message is different.

Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

symfony/intl is listed in the website-skeleton since 2018

@fabpot
Copy link
Member

Thank you@Nyholm.

@fabpotfabpot merged commit304980e intosymfony:5.xFeb 25, 2021
@Nyholm
Copy link
MemberAuthor

Thank you for merging

@NyholmNyholm deleted the form-intl branchFebruary 25, 2021 07:36
Nyholm added a commit that referenced this pull requestFeb 25, 2021
… (wouterj)This PR was merged into the 4.4 branch.Discussion----------[TwigBridge] Install symfony/intl to run tests on Travis| Q             | A| ------------- | ---| Branch?       | 5.x| Bug fix?      | bi| New feature?  | no| Deprecations? | no| Tickets       | -| License       | MIT| Doc PR        | -The hard dependency on `symfony/intl` was removed from the Form component in 5.3-dev (#40298). I suggest to add the explicit dev dependency on TwigBridge on 4.4 already.Commits-------b297045 [TwigBridge] Install symfony/intl to run tests on Travis
@fabpotfabpot mentioned this pull requestApr 18, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@xabbuhxabbuhAwaiting requested review from xabbuh

@ycerutoycerutoAwaiting requested review from yceruto

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

[Form] Remove dependency on symfony/intl

4 participants

@Nyholm@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp