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) | ||
| 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. | |
| addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider) deprecated |
Details
__construct(ContainerBuilder $container)
Parameters
| ContainerBuilder | $container |
setProxyDumper(DumperInterface $proxyDumper)
Sets the dumper to be used when dumping proxies in the generated container.
Parameters
| DumperInterface | $proxyDumper |
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 |
string dumpParameter(string $name)
Dumps a parameter.
Parameters
| string | $name |
Return Value
| string |
addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider) deprecated
deprecated
Parameters
| ExpressionFunctionProviderInterface | $provider |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/DependencyInjection/Dumper/PhpDumper.html