Copied!

XmlDumper dumps a service container as an XML string.

CloneableInstantiable
Methods
public Symfony\Component\DependencyInjection\Dumper\Dumper::__construct(Symfony\Component\DependencyInjection\ContainerBuilder $container)
public dump(array $options = []) : string
 

Dumps the service container as an XML string.

public static phpToXml(?mixed $value) : string
 

Converts php types to xml types.

  • throws RuntimeException When trying to dump object or resource
Properties
protected Symfony\Component\DependencyInjection\Dumper\Dumper::$container
Properties
private DOMDocument $document
Methods
private addMethodCalls(array $methodcalls, DOMElement $parent)
private addParameters(DOMElement $parent)
private addService(Symfony\Component\DependencyInjection\Definition $definition, ?string $id, DOMElement $parent)
private addServiceAlias(string $alias, Symfony\Component\DependencyInjection\Alias $id, DOMElement $parent)
private addServices(DOMElement $parent)
private convertParameters(array $parameters, string $type, DOMElement $parent, string $keyAttribute = 'key')
private escape(array $arguments) : array
 

Escapes arguments.

Methods
public static phpToXml(?mixed $value) : string
 

Converts php types to xml types.

  • throws RuntimeException When trying to dump object or resource
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration