Symfony2 API
Class

Symfony\Component\DependencyInjection\Dumper\PhpDumper

class PhpDumper extends Dumper

PhpDumper dumps a service container as a PHP class.

Constants

FIRST_CHARS

Characters that might appear in the generated variable name as first character

NON_FIRST_CHARS

Characters that might appear in the generated variable name as any but the first character

Methods

__construct(ContainerBuilder $container)

Constructor.

setProxyDumper(DumperInterface $proxyDumper)

Sets the dumper to be used when dumping proxies in the generated container.

string dump(array $options = array())

Dumps the service container as a PHP class.

string dumpParameter(string $name)

Dumps a parameter

Details

at line 65
public __construct(ContainerBuilder $container)

Constructor.

Parameters

ContainerBuilder $container The service container to dump

at line 77
public setProxyDumper(DumperInterface $proxyDumper)

Sets the dumper to be used when dumping proxies in the generated container.

Parameters

DumperInterface $proxyDumper

at line 97
public string dump(array $options = array())

Dumps the service container as a PHP class.

Available options:

Parameters

array $options An array of options

Return Value

string A PHP class representing of the service container

at line 1229
public string dumpParameter(string $name)

Dumps a parameter

Parameters

string $name

Return Value

string