YamlDumper dumps a service container as a YAML string.

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

Dumps the service container as an YAML string.

Properties
protected Symfony\Component\DependencyInjection\Dumper\Dumper :: $container
Properties
private Symfony\Component\Yaml\Dumper $dumper
Methods
private addParameters () : string
private addService ( string $id , Symfony\Component\DependencyInjection\Definition $definition ) : string
private addServiceAlias ( string $alias , Symfony\Component\DependencyInjection\Alias $id ) : string
private addServices () : string
private dumpCallable ( ? mixed $callable ) : ? mixed
 

Dumps callable to YAML format.

private dumpValue ( ? mixed $value ) : ? mixed
 

Dumps the value to YAML format.

  • throws RuntimeException When trying to dump object or resource
private escape ( array $arguments ) : array
private getExpressionCall ( string $expression ) : string
private getParameterCall ( string $id ) : string
private getServiceCall ( string $id , ? Symfony\Component\DependencyInjection\Reference $reference = NULL ) : string
private prepareParameters ( array $parameters , bool $escape = true ) : array
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration