Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add documentation for CallbackChoiceLoader #7219

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 3 commits into from
Mar 3, 2017
Merged

Add documentation for CallbackChoiceLoader #7219

merged 3 commits into from
Mar 3, 2017

Conversation

sawmurai
Copy link
Contributor

@sawmurai sawmurai commented Dec 3, 2016

PR for #7181

Copy link
Contributor

@HeahDude HeahDude left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution :) I've just left some minor comments

@@ -184,6 +184,19 @@ The ``choice_loader`` can be used to only partially load the choices in cases wh
a fully-loaded list is not necessary. This is only needed in advanced cases and
would replace the ``choices`` option.

You can use an instance of :class:`Symfony\\Component\\Form\\ChoiceList\\Loader\\CallbackChoiceLoader`
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing a versionadded note

return StaticClass::getConstants();
},
));

Copy link
Contributor

Choose a reason for hiding this comment

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

We could precise that, the call won't happen if there is a redirection (i.e the view is not built), AND if there is no pre set data or submitted data. Because otherwise we'll need to transform the value to a model choice (or the opposite) and that implies loading choices too.

@HeahDude
Copy link
Contributor

HeahDude commented Dec 4, 2016

Thank you again @sawmurai :)

👍

Status: Reviewed

@javiereguiluz
Copy link
Member

👍

@xabbuh xabbuh added this to the 3.2 milestone Mar 3, 2017
@xabbuh
Copy link
Member

xabbuh commented Mar 3, 2017

Thank you @sawmurai.

@xabbuh xabbuh merged commit 5838635 into symfony:3.2 Mar 3, 2017
xabbuh added a commit that referenced this pull request Mar 3, 2017
…aviereguiluz)

This PR was merged into the 3.2 branch.

Discussion
----------

Add documentation for CallbackChoiceLoader

PR for #7181

Commits
-------

5838635 Make lines shorter to comply with 80-char limit
731617f Clearify behaviour of CallbackChoiceLoader
e5e9a5d Add documentation for CallbackChoiceLoader
xabbuh added a commit that referenced this pull request Mar 3, 2017
xabbuh added a commit that referenced this pull request Mar 4, 2017
* 3.2: (24 commits)
  Minor rewords
  Update session_configuration.rst
  [#7522] minor wording improvement
  [#7513] fix line length
  Update 'ide' example in framework.rst
  [#7219] move versionadded in front of description
  Improved the image for Doctrine + Web Debug Toolbar
  [Serializer] Docs for the PropertyInfo integration
  Finished this PR
  section chronology in comment
  Removed the example about Redis
  Update cache.rst
  Update bundles/configuration.rst
  Fix typos
  Removed tip that was meant for the 2.x versions
  fix usage of the session flag bag API
  Add caution related to deprecate mail transport
  Use https URLs when possible
  [Requirements] Clarify what are JSON and ctype
  Proposed a minor reword
  ...
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