You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* compatibility with Symfony <2.7, JMS Serializer/SerializerBundle <1.0 and SensioFrameworkExtraBundle <3.0 was dropped
34
+
* compatibility with Symfony <2.7, JMS Serializer/SerializerBundle <1.0
35
+
and SensioFrameworkExtraBundle <3.0 was dropped
30
36
31
37
* constructor signature of DisableCSRFExtension was changed
32
38
33
-
* constructor signatures of most of the classes which used the container were changed
39
+
* constructor signatures of most of the classes which used the container
40
+
were changed
34
41
35
-
* removed ``callback_filter`` configuration option for the jsonp_handler
42
+
* removed `callback_filter` configuration option for the jsonp_handler
36
43
37
-
* the ``exception_wrapper_handler`` config option was removed. Use normalizers instead.
44
+
* the `exception_wrapper_handler` config option was removed. Use normalizers instead.
38
45
39
46
Before:
40
47
```yml
@@ -85,9 +92,10 @@ Upgrading From 1.x To 2.0
85
92
}
86
93
```
87
94
88
-
* removed all ``.class`` parameters, instead overwriting services via explicit Bundle configuration is preferred
95
+
* removed all `.class` parameters, instead overwriting services via
96
+
explicit Bundle configuration is preferred
89
97
90
-
* renamed ``AbstractScalarParam::$array`` to ``AbstractScalarParam::$map``
98
+
* renamed `AbstractScalarParam::$array` to `AbstractScalarParam::$map`
91
99
92
100
Before:
93
101
```php
@@ -123,16 +131,20 @@ Upgrading From 1.x To 2.0
123
131
124
132
* added `ControllerTrait` for developers that prefer to use DI for their controllers instead of extending ``FOSRestController``
125
133
126
-
* when having an action called ``lockUserAction``, then it will have to use the http method ``LOCK`` (RFC-2518) instead of ``PATCH``. The following methods are affected by this change
127
-
*``COPY``
128
-
*``LOCK``
129
-
*``MKCOL``
130
-
*``MOVE``
131
-
*``PROPFIND``
132
-
*``PROPPATCH``
133
-
*``UNLOCK``
134
+
* when having an action called ``lockUserAction``, then it will have to
135
+
use the http method ``LOCK`` (RFC-2518) instead of ``PATCH``.
136
+
The following methods are affected by this change:
134
137
135
-
* removed the ability of the ``AccessDeniedListener`` to render a response. Use the FOSRestBundle or the twig exception controller in complement.
138
+
* `COPY`
139
+
* `LOCK`
140
+
* `MKCOL`
141
+
* `MOVE`
142
+
* `PROPFIND`
143
+
* `PROPPATCH`
144
+
* `UNLOCK`
145
+
146
+
* removed the ability of the `AccessDeniedListener` to render a response.
147
+
Use the FOSRestBundle or the twig exception controller in complement.
136
148
137
149
Before:
138
150
```yml
@@ -151,11 +163,14 @@ Upgrading From 1.x To 2.0
151
163
exception: true # Activates the FOSRestBundle exception controller
152
164
```
153
165
154
-
* changed the priority of ``RequestBodyParamConverter`` to ``-50``
166
+
* changed the priority of `RequestBodyParamConverter` to `-50`
155
167
156
-
* made silent the ``RequestBodyParamConverter`` when a parameter is optional and it can't resolve it
168
+
* made silent the `RequestBodyParamConverter` when a parameter is
169
+
optional and it can't resolve it
157
170
158
-
* removed the ``format_negotiator`` option ``exception_fallback_format``; you can match the ``ExceptionController`` thanks to the ``attributes`` option instead
171
+
* removed the `format_negotiator` option `exception_fallback_format`;
172
+
you can match the `ExceptionController` thanks to the `attributes`
173
+
option instead
159
174
160
175
Before:
161
176
```yml
@@ -178,7 +193,9 @@ Upgrading From 1.x To 2.0
178
193
- { path: ^/, fallback_format: html } }
179
194
```
180
195
181
-
* `View::setSerializationContext` and `View::getSerializationContext` have been removed. Use `View::setContext` and `View::getContext` together with the new Context class instead.
196
+
* `View::setSerializationContext` and `View::getSerializationContext`
197
+
have been removed. Use `View::setContext` and `View::getContext`
0 commit comments