Skip to content

[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 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
Feb 19, 2013

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Feb 17, 2013

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #7063
License MIT
Doc PR n/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

vicb commented Feb 17, 2013

changelog ?

@fabpot
Copy link
Member Author

fabpot commented Feb 17, 2013

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

@stof
Copy link
Member

stof commented Feb 17, 2013

@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

stof commented Feb 17, 2013

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 as symfony#7007 will fix it properly in Symfony 2.3.
fabpot added a commit that referenced this pull request Feb 19, 2013
This PR was merged into the 2.1 branch.

Commits
-------

3e40c17 [HttpKernel] fixed locale management when exiting sub-requests

Discussion
----------

[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/a

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

---------------------------------------------------------------------------

by vicb at 2013-02-17T20:17:44Z

changelog ?

---------------------------------------------------------------------------

by fabpot at 2013-02-17T20:27:22Z

The 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:31Z

hmm sorry, I missed the fact that you are changing the locale in the Request again, which will set the intl one
@fabpot fabpot merged commit 3e40c17 into symfony:2.1 Feb 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants