PHP Class Symfony\Component\DependencyInjection\Dumper\XmlDumper

Author: Fabien Potencier ([email protected])
Author: Martin Hasoň ([email protected])
Inheritance: extends Symfony\Component\DependencyInjection\Dumper\Dumper
Exibir arquivo Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
dump ( array $options = [] ) : string Dumps the service container as an XML string.
phpToXml ( mixed $value ) Converts php types to xml types.

Private Methods

Method Description
addMethodCalls ( array $methodcalls, DOMElement $parent ) : void Adds method calls.
addParameters ( DOMElement $parent ) : void Adds parameters.
addService ( Definition $definition, string $id, DOMElement $parent ) : void Adds a service.
addServiceAlias ( string $alias, string $id, DOMElement $parent ) : void Adds a service alias.
addServices ( DOMElement $parent ) : void Adds services.
convertParameters ( array $parameters, string $type, DOMElement $parent, string $keyAttribute = 'key' ) : void Converts parameters.
escape ( array $arguments ) : array Escapes arguments

Method Details

dump() public method

Dumps the service container as an XML string.
public dump ( array $options = [] ) : string
$options array An array of options
return string An xml string representing of the service container

phpToXml() public static method

Converts php types to xml types.
public static phpToXml ( mixed $value )
$value mixed Value to convert