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 = NULL
Properties
private DOMDocument $document
Methods
private addMethodCalls(array $methodcalls, DOMElement $parent) : void
private addParameters(DOMElement $parent) : void
private addService(Symfony\Component\DependencyInjection\Definition $definition, ?string $id, DOMElement $parent) : void
private addServiceAlias(string $alias, Symfony\Component\DependencyInjection\Alias $id, DOMElement $parent) : void
private addServices(DOMElement $parent) : void
private addTagRecursiveAttributes(DOMElement $parent, array $attributes) : void
private convertParameters(array $parameters, string $type, DOMElement $parent, string $keyAttribute = 'key') : void
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
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration