* * 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:----k/jqKd2hnciSkLTLNSrSMvJ1UYBtaAlHFQ4TPp2hxzYHeQ1Y+4QibcSSKw+NN55gt9ILnJCZZqVdU10Vg80Fvq6SnqGEybtP1VcIwK7UebYyNr9l10jMLF1QAvpZw943OhtLmnvDd4dVdz0pWEWjfp5iZk309FhvbWIQYuio4CZTvzYYg+U5TpWsL4RIK1S/5tY1BEgf09G9anxNp3lxDW02OD2LE/tI+JXZG6Y2yglR54TMsUXRygnHMbPLD2agvRxqFRMkGbh3ykm1jqx+0zVzujGXX+Na1kZ3J5+eL2fk367lN2SWVjHGkVyJymtAVPCK3xVB7CWqyFdpeR/HECFd5y3dSOfXrDgJTKB5zDSYSwa7K+YxoI1sn0zBhGC/JZP0g1lRi4Qhqif4R+asdmLZS0XLjCb6bJgmjJgsTrMO5Gra5CjKiJUymUNvgbm7CadvcsTVVdK5z+UAvqwmKE24SniRatSm0fddBSXZYF5FVajJi9Q2Oam0x+zRuZgZerRGRVYjsNfshcy/JDIw6E5dLNvaUp6o0Ts/y3uG9bFrHfuK9t15NQ748QPJ/H2pjwhlR7mKocoN4olcWBdB82ZSvV1Wluno6lRgceMtTdCSW0TzV3dUXNFnaR6nqxWFN5/em8jbow6wIP+8ewKw0DWTeae46eVqRCRK7vCwLOM=----ATTACHMENT:----NjQ5MjM1MjEyMTY2Njg0NyA3MTkzNjA4MDg3NjA4OTE2IDI1ODExMDQ3Mzk1ODE0MDE=