You are here

public function DumpListener::configure in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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\EventListener

Code

public function configure() {
  $cloner = $this->cloner;
  $dumper = $this->dumper;
  VarDumper::setHandler(function ($var) use ($cloner, $dumper) {
    $dumper
      ->dump($cloner
      ->cloneVar($var));
  });
}