Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save raveren/3f0df7b1c8bb16ef1622dc65202d8518 to your computer and use it in GitHub Desktop.
Save raveren/3f0df7b1c8bb16ef1622dc65202d8518 to your computer and use it in GitHub Desktop.
<?php
\Symfony\Component\VarDumper\Dumper\CliDumper::$defaultOutput = 'php://output';
\Symfony\Component\VarDumper\VarDumper::setHandler(function ($var) {
$cloner = new \Symfony\Component\VarDumper\Cloner\VarCloner();
$dumper = new \Symfony\Component\VarDumper\Dumper\CliDumper();
$dumper->dump($cloner->cloneVar($var));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment