fixup! [SoapBundle] Set _format route to xml
This commit is contained in:
parent
7a9119cef1
commit
fb56d51bd8
@ -51,7 +51,9 @@ class SoapExceptionListener extends ExceptionListener
|
||||
}
|
||||
|
||||
$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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user