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

[HttpKernel] fixed locale management when exiting sub-requests#7099

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:2.1fromfabpot:locale-fix
Feb 19, 2013

Conversation

fabpot
Copy link
Member

QA
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#7063
LicenseMIT
Doc PRn/a

This fix is temporary as#7007 will fix it properly in Symfony 2.3.

@@ -32,19 +33,24 @@ public function __construct($defaultLocale = 'en', RequestContextAwareInterface
$this->router = $router;
}

public function onKernelResponse($event)
Copy link
Contributor

Choose a reason for hiding this comment

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

phpdoc ?

Copy link
Contributor

Choose a reason for hiding this comment

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

can $event be typhinted?

@vicb
Copy link
Contributor

changelog ?

@fabpot
Copy link
MemberAuthor

The changelogs are updated when we release a new version only.

@stof
Copy link
Member

@fabpot the intl locale should be reset to the right value too

);
}

private function setLocale($request, $locale)
Copy link
Member

Choose a reason for hiding this comment

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

you should typehint the request

@stof
Copy link
Member

hmm sorry, I missed the fact that you are changing the locale in the Request again, which will set the intl one

This fix is temporary assymfony#7007 will fix it properly in Symfony 2.3.
fabpot added a commit that referenced this pull requestFeb 19, 2013
This PR was merged into the 2.1 branch.Commits-------3e40c17 [HttpKernel] fixed locale management when exiting sub-requestsDiscussion----------[HttpKernel] fixed locale management when exiting sub-requests| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#7063| License       | MIT| Doc PR        | n/aThis fix is temporary as#7007 will fix it properly in Symfony 2.3.---------------------------------------------------------------------------by vicb at 2013-02-17T20:17:44Zchangelog ?---------------------------------------------------------------------------by fabpot at 2013-02-17T20:27:22ZThe changelogs are updated when we release a new version only.---------------------------------------------------------------------------by stof at 2013-02-17T20:41:00Z@fabpot the intl locale should be reset to the right value too---------------------------------------------------------------------------by stof at 2013-02-17T20:42:31Zhmm sorry, I missed the fact that you are changing the locale in the Request again, which will set the intl one
@fabpotfabpot merged commit3e40c17 intosymfony:2.1Feb 19, 2013
@eldar-caeldar-ca mentioned this pull requestMar 27, 2013
2 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@fabpot@vicb@stof@Tobion

[8]ページ先頭

©2009-2025 Movatter.jp