Add an exception listener

This commit is contained in:
Jeremy Dormitzer 2019-01-08 17:26:46 -05:00
parent d33c221a89
commit a0bc35d692

View File

@ -15,6 +15,7 @@ use Symfony\Component\HttpKernel\HttpKernel;
use Symfony\Component\EventDispatcher;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\HttpKernel\Controller\ArgumentResolver;
use Symfony\Component\HttpKernel\EventListener\ExceptionListener;
class ActivityPub
{
@ -63,8 +64,7 @@ class ActivityPub
}
$dispatcher = new EventDispatcher();
$dispatcher->addSubscriber( $router );
// TODO add listeners here
$dispatcher->addSubscriber( new ExceptionListener() );
$controllerResolver = new ControllerResolver();
$argumentResolver = new ArgumentResolver();