Skip to content

Conversation

@roromix
Copy link
Contributor

@roromix roromix commented Mar 30, 2021

Q A
Branch? 5.x
Bug fix? yes
New feature? yes
Deprecations? no
License MIT
Doc PR symfony/symfony-docs#15163

While writing the documentation for PR#40153 I noticed that the RequestContext :: fromRequest method does not add the '_locale' parameter. This new pull request to pass a RequestContext rather than a Request.

@chalasr
Copy link
Member

chalasr commented Mar 30, 2021

Would it make sense to keep the original implementation (before this PR) and use $request->getLocale() to set the _locale parameter on the RequestContext object that is created on the fly?

@roromix
Copy link
Contributor Author

roromix commented Mar 30, 2021

Would it make sense to keep the original implementation (before this PR) and use $request->getLocale() to set the _locale parameter on the RequestContext object that is created on the fly?

@chalasr : I hesitated to do this. So you might be right so I'll do another PR.

@roromix roromix closed this Mar 30, 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.

3 participants