8000 minor #18373 [FrameworkBundle] Upgrade notice for the Controller::jso… · symfony/symfony@45b557a · GitHub
[go: up one dir, main page]

Skip to content

Commit 45b557a

Browse files
committed
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.
2 parents 6dbda50 + ca6694a commit 45b557a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

UPGRADE-3.1.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ FrameworkBundle
2626
* As it was never an officially supported feature, the support for absolute
2727
template paths has been deprecated and will be removed in Symfony 4.0.
2828

29+
* The abstract `Controller` class now has a `json()` helper method that creates
30+
a `JsonResponse`. If you have existing controllers extending `Controller`
31+
that contain a method with this name, you need to rename that method to avoid
32+
conflicts.
33+
2934
* The following form types registered as services have been deprecated and
3035
will be removed in Symfony 4.0; use their fully-qualified class name instead:
3136

0 commit comments

Comments
 (0)
0