W3cubDocs

/Symfony 4.1

YamlDumper

class YamlDumper extends Dumper

YamlDumper dumps a service container as a YAML string.

Properties

protected $container from Dumper

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.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/Dumper/YamlDumper.html