Skip to content

Commit fb56d51

Browse files
committed
fixup! [SoapBundle] Set _format route to xml
1 parent 7a9119c commit fb56d51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/BeSimple/SoapBundle/EventListener/SoapExceptionListener.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ public function onKernelException(GetResponseForExceptionEvent $event)
5151
}
5252

5353
$request = $event->getRequest();
54-
if ('soap' !== $request->getRequestFormat()) {
54+
if (!in_array($request->getRequestFormat(), array('soap', 'xml'))) {
55+
return;
56+
} elseif ('xml' === $request->getRequestFormat() && '_webservice_call' !== $request->attributes->get('_route')) {
5557
return;
5658
}
5759

0 commit comments

Comments
 (0)