fix upgrade info about locale

it duplicated the header and had an irrelevant point inbetween
This commit is contained in:
Tobias Schultze 2012-11-19 17:13:42 +01:00
parent 8f33f2ea86
commit 4b21d18738

View File

@ -29,6 +29,7 @@
Therefore you should change the namespace of this bundle in your AppKernel.php:
Before: `new Symfony\Bundle\DoctrineBundle\DoctrineBundle()`
After: `new Doctrine\Bundle\DoctrineBundle\DoctrineBundle()`
### HttpFoundation
@ -52,11 +53,6 @@
default_locale: fr
```
* The methods `getPathInfo()`, `getBaseUrl()` and `getBasePath()` of
a `Request` now all return a raw value (vs a urldecoded value before). Any call
to one of these methods must be checked and wrapped in a `rawurldecode()` if
needed.
##### Retrieving the locale from a Twig template
Before: `{{ app.request.session.locale }}` or `{{ app.session.locale }}`
@ -75,13 +71,11 @@
After: `$request->getLocale()`
### HttpFoundation
##### Simulate old behavior
* The current locale for the user is not stored anymore in the session
You can simulate the old behavior by registering a listener that looks like
the following if the parameter which handles the locale value in the
request is `_locale`:
You can simulate that the locale for the user is still stored in the session by
registering a listener that looks like the following if the parameter which
handles the locale value in the request is `_locale`:
```
namespace XXX;
@ -123,6 +117,11 @@
}
```
* The methods `getPathInfo()`, `getBaseUrl()` and `getBasePath()` of
a `Request` now all return a raw value (vs a urldecoded value before). Any call
to one of these methods must be checked and wrapped in a `rawurldecode()` if
needed.
### Security
* `Symfony\Component\Security\Core\User\UserInterface::equals()` has moved to