diff --git a/UPGRADE-2.1.md b/UPGRADE-2.1.md index 4f14ed03da..99944e06bb 100644 --- a/UPGRADE-2.1.md +++ b/UPGRADE-2.1.md @@ -258,39 +258,39 @@ UPGRADE FROM 2.0 to 2.1 * Flash Messages now returns and array based on type (the old method are still available but deprecated) - Before (Twig): + Before (Twig): - {% if app.session.hasFlash('notice') %} -
- {{ app.session.flash('notice') }} -
- {% endif %} + {% if app.session.hasFlash('notice') %} +
+ {{ app.session.flash('notice') }} +
+ {% endif %} - After (Twig): + After (Twig): - {% if app.session.flashbag.has('notice') %} -
- {{ app.session.flashbag.get('notice') }} -
- {% endif %} + {% if app.session.flashbag.has('notice') %} +
+ {{ app.session.flashbag.get('notice') }} +
+ {% endif %} - Again you can process all flash messages in one go with + Again you can process all flash messages in one go with - {% for type, flashMessage in app.session.flashbag.all() %} -
- {{ flashMessage }} -
- {% endforeach %} + {% for type, flashMessage in app.session.flashbag.all() %} +
+ {{ flashMessage }} +
+ {% endforeach %} * Session storage drivers - Session storage drivers should inherit from - `Symfony\Component\HttpFoundation\Session\Storage\AbstractSessionStorage` - and no longer should implement `read()`, `write()`, `remove()` which were removed from the - `SessionStorageInterface`. + Session storage drivers should inherit from + `Symfony\Component\HttpFoundation\Session\Storage\AbstractSessionStorage` + and no longer should implement `read()`, `write()`, `remove()` which were removed from the + `SessionStorageInterface`. - Any session storage driver that wants to use custom save handlers should - implement `Symfony\Component\HttpFoundation\Session\Storage\SaveHandlerInterface` + Any session storage driver that wants to use custom save handlers should + implement `Symfony\Component\HttpFoundation\Session\Storage\SaveHandlerInterface` * The methods `add`, `remove`, `setParent`, `bind` and `setData` in class Form now throw an exception if the form is already bound