public function DumpListener::configure in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/EventListener/DumpListener.php \Symfony\Component\HttpKernel\EventListener\DumpListener::configure()
File
- vendor/
symfony/ http-kernel/ EventListener/ DumpListener.php, line 40
Class
- DumpListener
- Configures dump() handler.
Namespace
Symfony\Component\HttpKernel\EventListenerCode
public function configure() {
$cloner = $this->cloner;
$dumper = $this->dumper;
VarDumper::setHandler(function ($var) use ($cloner, $dumper) {
$dumper
->dump($cloner
->cloneVar($var));
});
}