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.

Properties

protected $container from Dumper

Methods

__construct(ContainerBuilder $container)

No description

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 72
__construct(ContainerBuilder $container)

Parameters

ContainerBuilder $container

at line 82
setProxyDumper(DumperInterface $proxyDumper)

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

Parameters

DumperInterface $proxyDumper

at line 98
string dump(array $options = array())

Dumps the service container as a PHP class.

Available options:

  • class: The class name
  • base_class: The base class name
  • namespace: The class namespace

Parameters

array $options An array of options

Return Value

string The representation of the service container

at line 1420
string dumpParameter(string $name)

Dumps a parameter.

Parameters

string $name

Return Value

string

at line 1435
addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider) deprecated

deprecated since version 2.6.2, to be removed in 3.0. Use \Symfony\Component\DependencyInjection\ContainerBuilder::addExpressionLanguageProvider instead.