W3cubDocs

/Symfony 2.7

Symfony\Component\DependencyInjection\Dumper\XmlDumper

class XmlDumper extends Dumper

XmlDumper dumps a service container as an XML string.

Methods

__construct(ContainerBuilder $container)

Constructor.

from Dumper
string dump(array $options = array())

Dumps the service container as an XML string.

static string phpToXml(mixed $value)

Converts php types to xml types.

Details

public __construct(ContainerBuilder $container)

Constructor.

Parameters

ContainerBuilder $container The service container to dump

public string dump(array $options = array())

Dumps the service container as an XML string.

Parameters

array $options An array of options

Return Value

string An xml string representing of the service container

static public string phpToXml(mixed $value)

Converts php types to xml types.

Parameters

mixed $value Value to convert

Return Value

string

Exceptions

RuntimeException When trying to dump object or resource

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/DependencyInjection/Dumper/XmlDumper.html