class XmlDumper extends Dumper

XmlDumper dumps a service container as an XML string.

Properties

protected $container from Dumper

Methods

__construct(ContainerBuilder $container)

No description

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

__construct(ContainerBuilder $container)

Parameters

ContainerBuilder $container

string dump(array $options = array())

Dumps the service container as an XML string.

Parameters

array $options An array of options

Return Value

string The representation of the service container

static 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