Skip to content

Commit 88e6506

Browse files
authored
add config options to formatter
add config options to formatter
1 parent 1c65410 commit 88e6506

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

system/Format/XMLFormatter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ public function format($data)
6666
// @codeCoverageIgnoreEnd
6767
}
6868

69-
$output = new \SimpleXMLElement('<?xml version="1.0"?><response></response>');
69+
$options = $config->formatterOptions['application/xml'] ?? 0;
70+
$output = new \SimpleXMLElement('<?xml version="1.0"?><response></response>',$options);
7071

7172
$this->arrayToXML((array)$data, $output);
7273

0 commit comments

Comments
 (0)