fix upgrade info about locale
it duplicated the header and had an irrelevant point inbetween
This commit is contained in:
parent
8f33f2ea86
commit
4b21d18738
@ -29,6 +29,7 @@
|
|||||||
Therefore you should change the namespace of this bundle in your AppKernel.php:
|
Therefore you should change the namespace of this bundle in your AppKernel.php:
|
||||||
|
|
||||||
Before: `new Symfony\Bundle\DoctrineBundle\DoctrineBundle()`
|
Before: `new Symfony\Bundle\DoctrineBundle\DoctrineBundle()`
|
||||||
|
|
||||||
After: `new Doctrine\Bundle\DoctrineBundle\DoctrineBundle()`
|
After: `new Doctrine\Bundle\DoctrineBundle\DoctrineBundle()`
|
||||||
|
|
||||||
### HttpFoundation
|
### HttpFoundation
|
||||||
@ -52,11 +53,6 @@
|
|||||||
default_locale: fr
|
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
|
##### Retrieving the locale from a Twig template
|
||||||
|
|
||||||
Before: `{{ app.request.session.locale }}` or `{{ app.session.locale }}`
|
Before: `{{ app.request.session.locale }}` or `{{ app.session.locale }}`
|
||||||
@ -75,13 +71,11 @@
|
|||||||
|
|
||||||
After: `$request->getLocale()`
|
After: `$request->getLocale()`
|
||||||
|
|
||||||
### HttpFoundation
|
##### Simulate old behavior
|
||||||
|
|
||||||
* The current locale for the user is not stored anymore in the session
|
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
|
||||||
You can simulate the old behavior by registering a listener that looks like
|
handles the locale value in the request is `_locale`:
|
||||||
the following if the parameter which handles the locale value in the
|
|
||||||
request is `_locale`:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
namespace XXX;
|
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
|
### Security
|
||||||
|
|
||||||
* `Symfony\Component\Security\Core\User\UserInterface::equals()` has moved to
|
* `Symfony\Component\Security\Core\User\UserInterface::equals()` has moved to
|
||||||
|
Reference in New Issue
Block a user