Skip to content
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

Avoid confusion #6472

Closed
wants to merge 1 commit into from
Closed

Avoid confusion #6472

wants to merge 1 commit into from

Conversation

gerryvdm
Copy link

To me it was a bit confusing why the locale was set on the session and not the request. Further more, reading the linked article shows extra code is needed to make this work at all.

Since the linked article explains in more detail how to make the locale sticky, I suggest just setting it on the request in this code sample.

To me it was a bit confusing why the locale was set on the session and not the request. Further more, reading the linked article shows extra code is needed to make this work at all.

Since the linked article explains in more detail how to make the locale sticky, I suggest just setting it on the request in this code sample.
@xabbuh
Copy link
Member

xabbuh commented Apr 19, 2016

👍

weaverryan added a commit that referenced this pull request Apr 26, 2016
This PR was submitted for the 3.0 branch but it was merged into the 2.3 branch instead (closes #6472).

Discussion
----------

Avoid confusion

To me it was a bit confusing why the locale was set on the session and not the request. Further more, reading the linked article shows extra code is needed to make this work at all.

Since the linked article explains in more detail how to make the locale sticky, I suggest just setting it on the request in this code sample.

Commits
-------

6818b8e Avoid confusion
weaverryan added a commit that referenced this pull request Apr 26, 2016
@weaverryan
Copy link
Member

Wow, I <3 it - it seems much simpler now. Thanks Gerry!

@weaverryan weaverryan closed this Apr 26, 2016
weaverryan added a commit that referenced this pull request Apr 26, 2016
* 2.3:
  [#6472] Updating description, after change
  Avoid confusion
  Added file paths
  Fixes and rewords
  Documented the config options of TwigBundle
  [#6427] Adding a header
  Tests: Explain how to add or remove data in a collection of forms
  Document constraint validator alias optional
weaverryan added a commit that referenced this pull request Apr 26, 2016
* 2.7:
  [#6472] Updating description, after change
  Avoid confusion
  Added file paths
  Fixes and rewords
  Documented the config options of TwigBundle
  [#6427] Adding a header
  Tests: Explain how to add or remove data in a collection of forms
  Document constraint validator alias optional
weaverryan added a commit that referenced this pull request Apr 26, 2016
* 2.8:
  [#6472] Updating description, after change
  Avoid confusion
  Added file paths
  Fixes and rewords
  Documented the config options of TwigBundle
  [#6427] Adding a header
  Tests: Explain how to add or remove data in a collection of forms
  Document constraint validator alias optional
weaverryan added a commit that referenced this pull request Apr 26, 2016
* 3.0:
  [#6472] Updating description, after change
  Avoid confusion
  Added file paths
  Fixes and rewords
  Documented the config options of TwigBundle
  [#6427] Adding a header
  Tests: Explain how to add or remove data in a collection of forms
  Document constraint validator alias optional
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.

None yet

3 participants