Skip to content

Commit

Permalink
fixup! [SoapBundle] Set _format route to xml
Browse files Browse the repository at this point in the history
  • Loading branch information
francisbesset committed Mar 27, 2015
1 parent 7a9119c commit fb56d51
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 fb56d51

Please sign in to comment.