XmlDumper
extends Dumper
in package
XmlDumper dumps a service container as an XML string.
Tags
Table of Contents
- $container : mixed
- $document : DOMDocument
- __construct() : mixed
- dump() : string
- Dumps the service container as an XML string.
- phpToXml() : string
- Converts php types to xml types.
- addMethodCalls() : mixed
- addParameters() : mixed
- addService() : mixed
- addServiceAlias() : mixed
- addServices() : mixed
- convertParameters() : mixed
- escape() : array<string|int, mixed>
- Escapes arguments.
Properties
$container
protected
mixed
$container
$document
private
DOMDocument
$document
Methods
__construct()
public
__construct(ContainerBuilder $container) : mixed
Parameters
- $container : ContainerBuilder
Return values
mixed —dump()
Dumps the service container as an XML string.
public
dump([array<string|int, mixed> $options = [] ]) : string
Parameters
- $options : array<string|int, mixed> = []
Return values
string —phpToXml()
Converts php types to xml types.
public
static phpToXml(mixed $value) : string
Parameters
- $value : mixed
-
Value to convert
Tags
Return values
string —addMethodCalls()
private
addMethodCalls(array<string|int, mixed> $methodcalls, DOMElement $parent) : mixed
Parameters
- $methodcalls : array<string|int, mixed>
- $parent : DOMElement
Return values
mixed —addParameters()
private
addParameters(DOMElement $parent) : mixed
Parameters
- $parent : DOMElement
Return values
mixed —addService()
private
addService(Definition $definition, string|null $id, DOMElement $parent) : mixed
Parameters
- $definition : Definition
- $id : string|null
- $parent : DOMElement
Return values
mixed —addServiceAlias()
private
addServiceAlias(string $alias, Alias $id, DOMElement $parent) : mixed
Parameters
- $alias : string
- $id : Alias
- $parent : DOMElement
Return values
mixed —addServices()
private
addServices(DOMElement $parent) : mixed
Parameters
- $parent : DOMElement
Return values
mixed —convertParameters()
private
convertParameters(array<string|int, mixed> $parameters, string $type, DOMElement $parent[, string $keyAttribute = 'key' ]) : mixed
Parameters
- $parameters : array<string|int, mixed>
- $type : string
- $parent : DOMElement
- $keyAttribute : string = 'key'
Return values
mixed —escape()
Escapes arguments.
private
escape(array<string|int, mixed> $arguments) : array<string|int, mixed>
Parameters
- $arguments : array<string|int, mixed>