Closed
Description
Q | A |
---|---|
Bug report? | yes |
Feature request? | no |
BC Break report? | yes |
RFC? | ? |
Symfony version | 4.0.3 |
I have the following snippet defining a route:
path: /channel
controller: App\Controller\ChannelController::create
methods: [POST]
defaults:
_format: json
On Symfony3-, any exception thrown inside ChannelController::create
would generate a JSON response. However, the current version seems to be ignoring the _format
directive (even though the docs are still telling me to do exactly like this).