8000 feature #11078 [WIP] [TwigBundle] [Exception] Make return value simil… · symfony/symfony@9752a76 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9752a76

Browse files
committed
feature #11078 [WIP] [TwigBundle] [Exception] Make return value similar to error.json.twig (clemens-tolboom)
This PR was squashed before being merged into the 2.6-dev branch (closes #11078). Discussion ---------- [WIP] [TwigBundle] [Exception] Make return value similar to error.json.twig | Q | A | ------------- | --- | Bug fix? | I guess this is a bug | New feature? | The exception structure changes for the default | BC breaks? | The exception structure changes for the default | Deprecations? | [yes|no] | Tests pass? | [yes|no] | Fixed tickets | | License | MIT | Doc PR | The result for `error.json.twig` and `exception.json.twig` differ making the client forced to check for it's result. We think the structure should be the same to make the ie a javascript client try to respond similar for --env=dev|prod Commits ------- 4a59f98 [WIP] [TwigBundle] [Exception] Make return value similar to error.json.twig
2 parents e5e6f4d + 4a59f98 commit 9752a76

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Symfony/Bundle/TwigBundle/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
2.6.0
5+
-----
6+
7+
* [BC BREAK] changed exception.json.twig to match same structure as error.json.twig making clients independent of runtime environment.
8+
49
2.3.0
510
-----
611

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{ exception.toarray|json_encode|raw }}
1+
{{ { 'error': { 'code': status_code, 'message': status_text, 'exception': exception.toarray } }|json_encode|raw }}

0 commit comments

Comments
 (0)
0