[DebugBundle] Added min_depth to Configuration
This enables calling the recently-added setMinDepth function on VarCloner.
This commit is contained in:
parent
1e88b35380
commit
30cd70dcad
@ -36,6 +36,11 @@ class Configuration implements ConfigurationInterface
|
|||||||
->min(-1)
|
->min(-1)
|
||||||
->defaultValue(2500)
|
->defaultValue(2500)
|
||||||
->end()
|
->end()
|
||||||
|
->integerNode('min_depth')
|
||||||
|
->info('Minimum tree depth to clone all the items, 1 is default')
|
||||||
|
->min(0)
|
||||||
|
->defaultValue(1)
|
||||||
|
->end()
|
||||||
->integerNode('max_string_length')
|
->integerNode('max_string_length')
|
||||||
->info('Max length of displayed strings, -1 means no limit')
|
->info('Max length of displayed strings, -1 means no limit')
|
||||||
->min(-1)
|
->min(-1)
|
||||||
|
@ -37,6 +37,7 @@ class DebugExtension extends Extension
|
|||||||
|
|
||||||
$container->getDefinition('var_dumper.cloner')
|
$container->getDefinition('var_dumper.cloner')
|
||||||
->addMethodCall('setMaxItems', array($config['max_items']))
|
->addMethodCall('setMaxItems', array($config['max_items']))
|
||||||
|
->addMethodCall('setMinDepth', array($config['min_depth']))
|
||||||
->addMethodCall('setMaxString', array($config['max_string_length']));
|
->addMethodCall('setMaxString', array($config['max_string_length']));
|
||||||
|
|
||||||
if (null !== $config['dump_destination']) {
|
if (null !== $config['dump_destination']) {
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
<xsd:complexType name="config">
|
<xsd:complexType name="config">
|
||||||
<xsd:attribute name="max-items" type="xsd:integer" />
|
<xsd:attribute name="max-items" type="xsd:integer" />
|
||||||
|
<xsd:attribute name="min-depth" type="xsd:integer" />
|
||||||
<xsd:attribute name="max-string-length" type="xsd:integer" />
|
<xsd:attribute name="max-string-length" type="xsd:integer" />
|
||||||
<xsd:attribute name="dump-destination" type="xsd:string" />
|
<xsd:attribute name="dump-destination" type="xsd:string" />
|
||||||
</xsd:complexType>
|
</xsd:complexType>
|
||||||
|
Reference in New Issue
Block a user