YamlDumper
extends Dumper
in package
YamlDumper dumps a service container as a YAML string.
Tags
Table of Contents
- $container : mixed
- $dumper : mixed
- __construct() : mixed
- dump() : string
- Dumps the service container as an YAML string.
- addParameters() : string
- addService() : string
- addServiceAlias() : string
- addServices() : string
- dumpCallable() : mixed
- Dumps callable to YAML format.
- dumpValue() : mixed
- Dumps the value to YAML format.
- escape() : array<string|int, mixed>
- getExpressionCall() : string
- getParameterCall() : string
- getServiceCall() : string
- prepareParameters() : array<string|int, mixed>
Properties
$container
protected
mixed
$container
$dumper
private
mixed
$dumper
Methods
__construct()
public
__construct(ContainerBuilder $container) : mixed
Parameters
- $container : ContainerBuilder
Return values
mixed —dump()
Dumps the service container as an YAML string.
public
dump([array<string|int, mixed> $options = [] ]) : string
Parameters
- $options : array<string|int, mixed> = []
Return values
string —addParameters()
private
addParameters() : string
Return values
string —addService()
private
addService(string $id, Definition $definition) : string
Parameters
- $id : string
- $definition : Definition
Return values
string —addServiceAlias()
private
addServiceAlias(string $alias, Alias $id) : string
Parameters
- $alias : string
- $id : Alias
Return values
string —addServices()
private
addServices() : string
Return values
string —dumpCallable()
Dumps callable to YAML format.
private
dumpCallable(mixed $callable) : mixed
Parameters
- $callable : mixed
Return values
mixed —dumpValue()
Dumps the value to YAML format.
private
dumpValue(mixed $value) : mixed
Parameters
- $value : mixed
Tags
Return values
mixed —escape()
private
escape(array<string|int, mixed> $arguments) : array<string|int, mixed>
Parameters
- $arguments : array<string|int, mixed>
Return values
array<string|int, mixed> —getExpressionCall()
private
getExpressionCall(string $expression) : string
Parameters
- $expression : string
Return values
string —getParameterCall()
private
getParameterCall(string $id) : string
Parameters
- $id : string
Return values
string —getServiceCall()
private
getServiceCall(string $id[, Reference|null $reference = null ]) : string
Parameters
- $id : string
- $reference : Reference|null = null
Return values
string —prepareParameters()
private
prepareParameters(array<string|int, mixed> $parameters[, bool $escape = true ]) : array<string|int, mixed>
Parameters
- $parameters : array<string|int, mixed>
- $escape : bool = true