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 = [])

Dumps the service container as an XML string.

static string
phpToXml(mixed $value)

Converts php types to xml types.

Details

in Dumper at line 25
__construct(ContainerBuilder $container)

Parameters

ContainerBuilder $container

at line 43
string dump(array $options = [])

Dumps the service container as an XML string.

Parameters

array $options An array of options

Return Value

string The representation of the service container

at line 346
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