* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\EventListener; use Symfony\Component\Console\ConsoleEvents; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\VarDumper\Cloner\ClonerInterface; use Symfony\Component\VarDumper\Dumper\DataDumperInterface; use Symfony\Component\VarDumper\VarDumper; /** * Configures dump() handler. * * @author Nicolas Grekas */ class DumpListener implements EventSubscriberInterface { private $cloner; private $dumper; public function __construct(ClonerInterface $cloner, DataDumperInterface $dumper) { $this->cloner = $cloner; $this->dumper = $dumper; } public function configure() { $cloner = $this->cloner; $dumper = $this->dumper; VarDumper::setHandler(function ($var) use ($cloner, $dumper) { $dumper->dump($cloner->cloneVar($var)); }); } public static function getSubscribedEvents() { if (!class_exists(ConsoleEvents::class)) { return array(); } // Register early to have a working dump() as early as possible return array(ConsoleEvents::COMMAND => array('configure', 1024)); } } __halt_compiler();----SIGNATURE:----br7XRzvKIW5aLLe9t580eFG68IYPYVaxSUQtkziccdWt29nV4ZOlW0KW9DSRyORijx8IfANpPOToR6RIo4PdaMGuFTHheiHr/fYDLdNnv3+4MTGiwlxVnqTq8EF9aQcEZw1NFmSojF43H+J7kroK7TfQ1A/NXm/Lhca9rMlCpNzaLnv1dVg6KHnDXftYOeTTfsXHWkVvgtNzzVasts3tQYcShNUbohZkTCZcUpvqE3FUoH2/nokKbWoMlah0WAF9TYG66kDLsXFdV/7rYpKC7/k4qd8jSeiVycRn1C1fBoGUCF5A6z9yfkbOe6YhFqQ/h7y7gJFzmSTn+9g4uD6AAkQXeg5x0NhPNMUB5jcSXrbCLbCaIoFJUmI2q09GxAq3pTh7l1ekUAWYUOtf5Qo0G3CjyZhOO+ebNRPFjWIGbmzTN5KsufXsPZjRxK+hniiH7ZvTJaqOX6OHoMgJzQ9DvIwMEBp/3uYT9JfY3vx72IuOFfbi6Up9KX7CiTD5JUCogWlw+rmuM4xI271jBZzGa1KEOp1mHEYa9PqfKYc0yj06av9cmJTQCW/NDloydbzuI60TjropPWjofJKMEndAvs3fta70AQ0d1c3h8Fo9m1yT6WFJam05ESU6SZDSbG4cMmUAtlAWja0MJEFkISLS+FU+ndBG/JQYjR2cN8CfdL8=----ATTACHMENT:----OTI2ODk0MTExMzY1MjQgMzc2NzUyNjM1NTA2MzkxIDMzMzEwODQ3NTM3MjA0NDQ=