You are here

public function XmlEncoder::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Encoder/XmlEncoder.php \Symfony\Component\Serializer\Encoder\XmlEncoder::__construct()

Construct new XmlEncoder and allow to change the root node element name.

Parameters

string $rootNodeName:

File

vendor/symfony/serializer/Encoder/XmlEncoder.php, line 39

Class

XmlEncoder
Encodes XML data.

Namespace

Symfony\Component\Serializer\Encoder

Code

public function __construct($rootNodeName = 'response') {
  $this->rootNodeName = $rootNodeName;
}