Skip to content

Commit 9712575

Browse files
committed
Normalize UPGRADING-2.0 line breaks
1 parent 51d1b0b commit 9712575

File tree

1 file changed

+47
-30
lines changed

1 file changed

+47
-30
lines changed

UPGRADING-2.0.md

Lines changed: 47 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
Upgrading From 1.x To 2.0
22
=========================
33

4-
* The `RedirectView` and `RouteRedirect` view classes were removed. Use `View::createRedirect()`
5-
and `View::createRouteRedirect()` instead.
4+
* The `RedirectView` and `RouteRedirect` view classes were removed. Use
5+
`View::createRedirect()` and `View::createRouteRedirect()` instead.
66

7-
**Note**: the default status code for a route redirect has changed from HTTP_CREATED (201) to
8-
HTTP_FOUND (302).
7+
**Note**: the default status code for a route redirect has changed from
8+
HTTP_CREATED (201) to HTTP_FOUND (302).
99

10-
* The `FOS\RestBundle\Util\ViolationFormatter` class and the `FOS\RestBundle\Util\ViolationFormatterInterface`
11-
were removed. Catch specialized exception classes instead of checking specific exception messages.
10+
* The `FOS\RestBundle\Util\ViolationFormatter` class and the
11+
`FOS\RestBundle\Util\ViolationFormatterInterface` were removed.
12+
Catch specialized exception classes instead of checking specific
13+
exception messages.
1214

13-
* The `ViolationFormatterInterface` argument of the constructor of the `ParamFetcher` class was
14-
removed.
15+
* The `ViolationFormatterInterface` argument of the constructor of
16+
the `ParamFetcher` class was removed.
1517

16-
* The SensioFrameworkExtraBundle view annotations must be enabled to use the `ViewResponseListener`:
18+
* The SensioFrameworkExtraBundle view annotations must be enabled to
19+
use the `ViewResponseListener`:
1720

1821
```yaml
1922
# app/config/config.yml
@@ -22,19 +25,23 @@ Upgrading From 1.x To 2.0
2225
annotations: true
2326
```
2427
25-
* dropped support for the legacy ``Symfony\Component\Validator\ValidatorInterface``
28+
* dropped support for the legacy
29+
`Symfony\Component\Validator\ValidatorInterface`
2630

27-
* removed ``FOS\RestBundle\Util\Codes`` in favor of ``Symfony\Component\HttpFoundation\Response`` constants
31+
* removed `FOS\RestBundle\Util\Codes` in favor of
32+
`Symfony\Component\HttpFoundation\Response` constants
2833

29-
* 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
3036

3137
* constructor signature of DisableCSRFExtension was changed
3238

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
3441

35-
* removed ``callback_filter`` configuration option for the jsonp_handler
42+
* removed `callback_filter` configuration option for the jsonp_handler
3643

37-
* the ``exception_wrapper_handler`` config option was removed. Use normalizers instead.
44+
* the `exception_wrapper_handler` config option was removed. Use normalizers instead.
3845

3946
Before:
4047
```yml
@@ -85,9 +92,10 @@ Upgrading From 1.x To 2.0
8592
}
8693
```
8794

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
8997

90-
* renamed ``AbstractScalarParam::$array`` to ``AbstractScalarParam::$map``
98+
* renamed `AbstractScalarParam::$array` to `AbstractScalarParam::$map`
9199

92100
Before:
93101
```php
@@ -123,16 +131,20 @@ Upgrading From 1.x To 2.0
123131

124132
* added `ControllerTrait` for developers that prefer to use DI for their controllers instead of extending ``FOSRestController``
125133

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:
134137

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.
136148

137149
Before:
138150
```yml
@@ -151,11 +163,14 @@ Upgrading From 1.x To 2.0
151163
exception: true # Activates the FOSRestBundle exception controller
152164
```
153165

154-
* changed the priority of ``RequestBodyParamConverter`` to ``-50``
166+
* changed the priority of `RequestBodyParamConverter` to `-50`
155167

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
157170

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
159174

160175
Before:
161176
```yml
@@ -178,7 +193,9 @@ Upgrading From 1.x To 2.0
178193
- { path: ^/, fallback_format: html } }
179194
```
180195

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`
198+
together with the new Context class instead.
182199

183200
Before:
184201
```php

0 commit comments

Comments
 (0)