@@ -33,16 +33,19 @@ UPGRADE FROM 2.0 to 2.1
33
33
Retrieving the locale from a Twig template:
34
34
35
35
Before: ` {{ app.request.session.locale }} ` or ` {{ app.session.locale }} `
36
+
36
37
After: ` {{ app.request.locale }} `
37
38
38
39
Retrieving the locale from a PHP template:
39
40
40
41
Before: ` $view['session']->getLocale() `
42
+
41
43
After: ` $view['request']->getLocale() `
42
44
43
45
Retrieving the locale from PHP code:
44
46
45
47
Before: ` $session->getLocale() `
48
+
46
49
After: ` $request->getLocale() `
47
50
48
51
* Method ` equals ` of ` Symfony\Component\Security\Core\User\UserInterface ` has
@@ -138,7 +141,7 @@ UPGRADE FROM 2.0 to 2.1
138
141
139
142
* The strategy for generating the HTML attributes "id" and "name"
140
143
of choices in a choice field has changed
141
-
144
+
142
145
Instead of appending the choice value, a generated integer is now appended
143
146
by default. Take care if your Javascript relies on that. If you can
144
147
guarantee that your choice values only contain ASCII letters, digits,
@@ -148,7 +151,7 @@ UPGRADE FROM 2.0 to 2.1
148
151
149
152
* The strategy for generating the HTML attributes "value" of choices in a
150
153
choice field has changed
151
-
154
+
152
155
Instead of using the choice value, a generated integer is now stored.
153
156
Again, take care if your Javascript reads this value. If your choice field
154
157
is a non-expanded single-choice field, or if the choices are guaranteed not
0 commit comments