symfony/symfony — Issue #2386: Session locale never used
Author: kriswallsmith
Created: 2011-10-12 13:22:47+00:00
State: open
Labels: Bug, FrameworkBundle

The new `LocaleListener` will only read the locale from the session if `$request->hasPreviousSession()` returns true. The call to this method always returns false because the `SessionListener` has not been notified yet and the session object has not been injected into the request.

The listener priorities are:

* `LocaleListener`: 255
* `SessionListener`: 128

Changing these so the `SessionListener` is notified first would fix this issue.