forked from projects/file-explorer
some debugging
This commit is contained in:
parent
c58d2445fa
commit
58ab9e2154
23
src/test.php
Normal file
23
src/test.php
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace App;
|
||||||
|
|
||||||
|
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||||
|
use Symfony\Component\HttpKernel\Event\ExceptionEvent;
|
||||||
|
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
|
||||||
|
use Symfony\Component\HttpKernel\KernelEvents;
|
||||||
|
|
||||||
|
class test implements EventSubscriberInterface
|
||||||
|
{
|
||||||
|
|
||||||
|
public static function getSubscribedEvents()
|
||||||
|
{
|
||||||
|
return [KernelEvents::EXCEPTION => 'x'];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function x(ExceptionEvent $event)
|
||||||
|
{
|
||||||
|
dd($event->getThrowable());
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user