XmlDumper

class XmlDumper extends Dumper

XmlDumper dumps a service container as an XML string.

Methods

__construct(ContainerBuilder $container) 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 The service container to dump

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
doc_Symfony
2016-10-28 06:37:18
Comments
Leave a Comment

Please login to continue.