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
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.
Details
at line line 68
__construct(ContainerBuilder $container)
Constructor.
at line line 80
setProxyDumper(DumperInterface $proxyDumper)
Sets the dumper to be used when dumping proxies in the generated container.
at line 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