YamlDumper

class YamlDumper extends Dumper

YamlDumper dumps a service container as a YAML string.

Methods

__construct(ContainerBuilder $container) from Dumper
string dump(array $options = array())

Dumps the service container as an YAML string.

Details

__construct(ContainerBuilder $container)

Parameters

ContainerBuilder $container

string dump(array $options = array())

Dumps the service container as an YAML string.

Parameters

array $options An array of options

Return Value

string The representation of the service container

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/DependencyInjection/Dumper/YamlDumper.html