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 |
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 |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/DependencyInjection/Dumper/XmlDumper.html