Created
November 6, 2020 08:54
-
-
Save raveren/3f0df7b1c8bb16ef1622dc65202d8518 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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