Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
francisbesset committed Jun 1, 2015
2 parents 855e382 + fb56d51 commit 27ebf0f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ public function onKernelException(GetResponseForExceptionEvent $event)
}

$request = $event->getRequest();
if ('soap' !== $request->getRequestFormat()) {
if (!in_array($request->getRequestFormat(), array('soap', 'xml'))) {
return;
} elseif ('xml' === $request->getRequestFormat() && '_webservice_call' !== $request->attributes->get('_route')) {
return;
}

Expand Down

0 comments on commit 27ebf0f

Please sign in to comment.