[DebugBundle] Reword an outdated comment about var dumper wiring

This commit is contained in:
Maxime Steinhausser 2017-08-09 12:24:19 +02:00
parent ffa005c036
commit f876fd9253
1 changed files with 4 additions and 2 deletions

View File

@ -27,8 +27,10 @@ class DebugBundle extends Bundle
$container = $this->container;
// This code is here to lazy load the dump stack. This default
// configuration for CLI mode is overridden in HTTP mode on
// 'kernel.request' event
// configuration is overridden in CLI mode on 'console.command' event.
// The dump data collector is used by default, so dump output is sent to
// the WDT. In a CLI context, if dump is used too soon, the data collector
// will buffer it, and release it at the end of the script.
VarDumper::setHandler(function ($var) use ($container) {
$dumper = $container->get('data_collector.dump');
$cloner = $container->get('var_dumper.cloner');