Skip to content

Commit 0182782

Browse files
committed
remove pre 2.0 upgrade instructions
1 parent 368af16 commit 0182782

File tree

2 files changed

+52
-194
lines changed

2 files changed

+52
-194
lines changed

UPGRADING-2.0.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,55 @@ Upgrading From 1.x To 2.0
1212

1313
* The `ViolationFormatterInterface` argument of the constructor of the `ParamFetcher` class was
1414
removed.
15+
16+
* The SensioFrameworkExtraBundle view annotations must be enabled to use the `ViewResponseListener`:
17+
18+
```yaml
19+
# app/config/config.yml
20+
sensio_framework_extra:
21+
view:
22+
annotations: true
23+
```
24+
25+
* dropped support for the legacy ``Symfony\Component\Validator\ValidatorInterface``
26+
27+
* removed ``FOS\RestBundle\Util\Codes`` in favor of ``Symfony\Component\HttpFoundation\Response``
28+
29+
* compatibility with Symfony <2.7, JMS Serializer/SerializerBundle <1.0 and SensioFrameworkExtraBundle <3.0 was dropped
30+
31+
* RedirectView and RouteRedirectView view were removed. Use View::createRedirect and
32+
View::createRouteRedirect instead. Note: the default status code for a route redirect
33+
has changed from HTTP_CREATED (201) to HTTP_FOUND (302).
34+
35+
* constructor signature of DisableCSRFExtension was changed
36+
37+
* constructor signatures of most of the classes which used the container were changed
38+
39+
* removed ``callback_filter`` configuration option for the jsonp_handler
40+
41+
* ``exception_wrapper_handler`` is now the name of a service and not the name of a class
42+
43+
* removed all ``.class`` parameters, instead overwriting services via explicit Bundle configuration is preferred
44+
45+
* renamed ``AbstractScalarParam::$array`` to ``AbstractScalarParam::$map``
46+
47+
* added `ControllerTrait` for developers that prefer to use DI for their controllers instead of extending ``FOSRestController``
48+
49+
* 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
50+
* ``COPY``
51+
* ``LOCK``
52+
* ``MKCOL``
53+
* ``MOVE``
54+
* ``PROPFIND``
55+
* ``PROPPATCH``
56+
* ``UNLOCK``
57+
58+
* removed the ability of the ``AccessDeniedListener`` to render a response. Use the FOSRestBundle or the twig exception controller in complement.
59+
60+
* changed the priority of ``RequestBodyParamConverter`` to ``-50``
61+
62+
* made silent the ``RequestBodyParamConverter`` when a parameter is optional and it can't resolve it
63+
64+
* removed the ``format_negotiator`` option ``exception_fallback_format``; you can match the ``ExceptionController`` thanks to the ``attributes`` option instead
65+
66+
* `View::setSerializationContext` and `View::getSerializationContext` have been removed. Use `View::setContext` and `View::getContext` together with the new Context class instead.

UPGRADING.md

Lines changed: 0 additions & 194 deletions
This file was deleted.

0 commit comments

Comments
 (0)