W3cubDocs

/Symfony 2.7

Symfony\Component\DependencyInjection\Dumper\YamlDumper

class YamlDumper extends Dumper

YamlDumper dumps a service container as a YAML string.

Methods

__construct(ContainerBuilder $container)

Constructor.

string dump(array $options = array())

Dumps the service container as an YAML string.

Details

public __construct(ContainerBuilder $container)

Constructor.

Parameters

ContainerBuilder $container The service container to dump

public string dump(array $options = array())

Dumps the service container as an YAML string.

Parameters

array $options An array of options

Return Value

string A YAML string representing of the service container

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