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
* removed ``callback_filter`` configuration option for the jsonp_handler
50
+
versioning: true
51
+
```
36
52
37
-
* the ``exception_wrapper_handler`` config option was removed. Use normalizers instead.
53
+
* the `exception_wrapper_handler` config option was removed. Use normalizers instead.
38
54
39
55
Before:
40
56
```yml
@@ -85,9 +101,10 @@ Upgrading From 1.x To 2.0
85
101
}
86
102
```
87
103
88
-
* removed all ``.class`` parameters, instead overwriting services via explicit Bundle configuration is preferred
104
+
* removed all `.class` parameters, instead overwriting services via
105
+
explicit Bundle configuration is preferred
89
106
90
-
* renamed ``AbstractScalarParam::$array`` to ``AbstractScalarParam::$map``
107
+
* renamed `AbstractScalarParam::$array` to `AbstractScalarParam::$map`
91
108
92
109
Before:
93
110
```php
@@ -123,16 +140,20 @@ Upgrading From 1.x To 2.0
123
140
124
141
* added `ControllerTrait` for developers that prefer to use DI for their controllers instead of extending ``FOSRestController``
125
142
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``
143
+
* when having an action called ``lockUserAction``, then it will have to
144
+
use the http method ``LOCK`` (RFC-2518) instead of ``PATCH``.
145
+
The following methods are affected by this change:
146
+
147
+
* `COPY`
148
+
* `LOCK`
149
+
* `MKCOL`
150
+
* `MOVE`
151
+
* `PROPFIND`
152
+
* `PROPPATCH`
153
+
* `UNLOCK`
134
154
135
-
* removed the ability of the ``AccessDeniedListener`` to render a response. Use the FOSRestBundle or the twig exception controller in complement.
155
+
* removed the ability of the `AccessDeniedListener` to render a response.
156
+
Use the FOSRestBundle or the twig exception controller in complement.
136
157
137
158
Before:
138
159
```yml
@@ -151,11 +172,14 @@ Upgrading From 1.x To 2.0
151
172
exception: true # Activates the FOSRestBundle exception controller
152
173
```
153
174
154
-
* changed the priority of ``RequestBodyParamConverter`` to ``-50``
175
+
* changed the priority of `RequestBodyParamConverter` to `-50`
155
176
156
-
* made silent the ``RequestBodyParamConverter`` when a parameter is optional and it can't resolve it
177
+
* made silent the `RequestBodyParamConverter` when a parameter is
178
+
optional and it can't resolve it
157
179
158
-
* removed the ``format_negotiator`` option ``exception_fallback_format``; you can match the ``ExceptionController`` thanks to the ``attributes`` option instead
180
+
* removed the `format_negotiator` option `exception_fallback_format`;
181
+
you can match the `ExceptionController` thanks to the `attributes`
182
+
option instead
159
183
160
184
Before:
161
185
```yml
@@ -178,7 +202,9 @@ Upgrading From 1.x To 2.0
178
202
- { path: ^/, fallback_format: html } }
179
203
```
180
204
181
-
* `View::setSerializationContext` and `View::getSerializationContext` have been removed. Use `View::setContext` and `View::getContext` together with the new Context class instead.
205
+
* `View::setSerializationContext` and `View::getSerializationContext`
206
+
have been removed. Use `View::setContext` and `View::getContext`
0 commit comments