minor #18373 [FrameworkBundle] Upgrade notice for the Controller::json() method (derrabus)

This PR was merged into the 3.1-dev branch.

Discussion
----------

[FrameworkBundle] Upgrade notice for the Controller::json() method

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | N/A

PR #17642 added a `json()` method to the `Controller` class. This might break existing code extending the class. This PR adds a note about this to the UPGRADE-3.1 document.

Commits
-------

ca6694a Upgrade notice for the Controller::json() method.
This commit is contained in:
Fabien Potencier 2016-04-05 18:21:57 +02:00
commit 45b557a5a7
1 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,11 @@ FrameworkBundle
* As it was never an officially supported feature, the support for absolute
template paths has been deprecated and will be removed in Symfony 4.0.
* The abstract `Controller` class now has a `json()` helper method that creates
a `JsonResponse`. If you have existing controllers extending `Controller`
that contain a method with this name, you need to rename that method to avoid
conflicts.
* The following form types registered as services have been deprecated and
will be removed in Symfony 4.0; use their fully-qualified class name instead: