8000 [Form] Documented the intl option in TimezoneType by javiereguiluz · Pull Request #11867 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Form] Documented the intl option in TimezoneType #11867

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

Merged
merged 1 commit into from
Jul 3, 2019

Conversation

javiereguiluz
Copy link
Member

This fixes #11503.

@javiereguiluz javiereguiluz added this to the 4.3 milestone Jul 2, 2019
@javiereguiluz javiereguiluz requested a review from xabbuh as a code owner July 2, 2019 14:47
@javiereguiluz
Copy link
Member Author

@ro0NL if you have some time, please review this. Thanks!

@@ -105,6 +129,8 @@ Inherited Options

These options inherit from the :doc:`ChoiceType </reference/forms/types/choice>`:

.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
Copy link
Member

Choose a reason for hiding this comment

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

I think we should add a note that this option can only be used when intl is set to true.

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought about that ... however, I saw that the code shows a perfect error message when you do that (see https://github.com/symfony/symfony/pull/31294/files#diff-c6198934d4f35bc102ff362d40b71285R72) so I guess it's fine to not add these implementation details in the docs.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's also more or less explained above. Works for me :)

Copy link
Member

Choose a reason for hiding this comment

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

My thought is that people will just notice this option and try to use it. But it's not a big deal. We can add something later anyway if we receive complaints about it not being straight-forward (the error provided by the form type is quite clear indeed).

@@ -105,6 +129,8 @@ Inherited Options

These options inherit from the :doc:`ChoiceType </reference/forms/types/choice>`:

.. include:: /reference/forms/types/options/choice_translation_domain.rst.inc
Copy link
Contributor

Choose a reason for hiding this comment

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

It's also more or less explained above. Works for me :)

@javiereguiluz javiereguiluz merged commit d96e56e into symfony:4.3 Jul 3, 2019
javiereguiluz added a commit that referenced this pull request Jul 3, 2019
…reguiluz)

This PR was squashed before being merged into the 4.3 branch (closes #11867).

Discussion
----------

[Form] Documented the intl option in TimezoneType

This fixes #11503.

Commits
-------

d96e56e [Form] Documented the intl option in TimezoneType
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.

5 participants
0