diff --git a/src/Symfony/Bundle/DebugBundle/DependencyInjection/Configuration.php b/src/Symfony/Bundle/DebugBundle/DependencyInjection/Configuration.php
index 5761e62a72e1a..4af24cd488393 100644
--- a/src/Symfony/Bundle/DebugBundle/DependencyInjection/Configuration.php
+++ b/src/Symfony/Bundle/DebugBundle/DependencyInjection/Configuration.php
@@ -36,6 +36,11 @@ public function getConfigTreeBuilder()
->min(-1)
->defaultValue(2500)
->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')
->info('Max length of displayed strings, -1 means no limit')
->min(-1)
diff --git a/src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php b/src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php
index ce6d1b7c677e4..835d823664021 100644
--- a/src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php
+++ b/src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php
@@ -37,6 +37,7 @@ public function load(array $configs, ContainerBuilder $container)
$container->getDefinition('var_dumper.cloner')
->addMethodCall('setMaxItems', array($config['max_items']))
+ ->addMethodCall('setMinDepth', array($config['min_depth']))
->addMethodCall('setMaxString', array($config['max_string_length']));
if (null !== $config['dump_destination']) {
diff --git a/src/Symfony/Bundle/DebugBundle/Resources/config/schema/debug-1.0.xsd b/src/Symfony/Bundle/DebugBundle/Resources/config/schema/debug-1.0.xsd
index a582ff8b2b70f..32306886020bf 100644
--- a/src/Symfony/Bundle/DebugBundle/Resources/config/schema/debug-1.0.xsd
+++ b/src/Symfony/Bundle/DebugBundle/Resources/config/schema/debug-1.0.xsd
@@ -8,6 +8,7 @@
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: