From fb56d51bd8c70ae6d7092f90fd7fec23520477df Mon Sep 17 00:00:00 2001 From: Francis Besset Date: Fri, 27 Mar 2015 16:07:42 +0100 Subject: [PATCH] fixup! [SoapBundle] Set _format route to xml --- .../SoapBundle/EventListener/SoapExceptionListener.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/BeSimple/SoapBundle/EventListener/SoapExceptionListener.php b/src/BeSimple/SoapBundle/EventListener/SoapExceptionListener.php index 89508b74..c31fb393 100644 --- a/src/BeSimple/SoapBundle/EventListener/SoapExceptionListener.php +++ b/src/BeSimple/SoapBundle/EventListener/SoapExceptionListener.php @@ -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; }