Documentation

YamlDumper extends Dumper
in package

YamlDumper dumps a service container as a YAML string.

Tags
author

Fabien Potencier fabien@symfony.com

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

Methods

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
throws
RuntimeException

When trying to dump object or resource

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
Return values
array<string|int, mixed>

Search results