Symfony\Component\DependencyInjection\Dumper\YamlDumper
YamlDumper dumps a service container as a YAML string.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class YamlDumper
extends Dumper
{
- // members
- private $dumper;
- // Inherited members from Dumper
- protected $container;
- // methods
- public void __construct()
- public string dump()
- private string addService()
- private string addServiceAlias()
- private string addServices()
- private string addParameters()
- private mixed dumpValue()
- private string getServiceCall()
- private string getParameterCall()
- private array prepareParameters()
- private array escape()
- // Inherited methods from Dumper
- public void __construct()
Hierarchy
Members
private
- $dumper
protected
- $container
Methods
private
- addParameters() — Adds parameters
- addService() — Adds a service
- addServiceAlias() — Adds a service alias
- addServices() — Adds services
- dumpValue() — Dumps the value to YAML format
- escape() — Escapes arguments
- getParameterCall() — Gets parameter call.
- getServiceCall() — Gets the service call.
- prepareParameters() — Prepares parameters.
public
- __construct() — Constructor.
- dump() — Dumps the service container as an YAML string.