Skip to content

Commit fc4f688

Browse files
committed
Merge pull request #1479 from FriendsOfSymfony/MERGE1.71.8
Merge 1.7 into 1.8
2 parents 84600d2 + e01e6aa commit fc4f688

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ CHANGELOG
4949
1.7.9
5050
-----
5151

52+
* fixed that the default exclusion strategy groups for the serializer are not the empty string
53+
5254
* fixed a BC break that prevented the `CamelKeysNormalizer` from removing leading underscores
5355

5456
* fixed the `AllowedMethodsRouteLoader` to work with Symfony 3.0

Controller/ExceptionController.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,11 @@ public function showAction(Request $request, $exception, DebugLoggerInterface $l
132132
}
133133

134134
$response = $viewHandler->handle($view);
135-
} catch (\Exception $e) {
135+
} catch (\Exception $handleException) {
136+
} catch (\Throwable $handleException) {
137+
}
138+
139+
if (isset($handleException)) {
136140
$message = 'An Exception was thrown while handling: ';
137141
$message .= $this->getExceptionMessage($exception);
138142
$response = $this->createPlainResponse($message, Codes::HTTP_INTERNAL_SERVER_ERROR, $exception->getHeaders());

Resources/config/view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<parameters>
88
<parameter key="fos_rest.serializer.exclusion_strategy.version" />
9-
<parameter key="fos_rest.serializer.exclusion_strategy.groups" type="collection"/>
9+
<parameter key="fos_rest.serializer.exclusion_strategy.groups" type="collection" />
1010
<parameter key="fos_rest.view_handler.jsonp.callback_param"/>
1111
<parameter key="fos_rest.view.exception_wrapper_handler">FOS\RestBundle\View\ExceptionWrapperHandler</parameter>
1212
<parameter key="fos_rest.view_handler.default.class">FOS\RestBundle\View\ViewHandler</parameter>

0 commit comments

Comments
 (0)