From a0bc35d692f0341a1d0641479c10aa0452eef908 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 8 Jan 2019 17:26:46 -0500 Subject: [PATCH] Add an exception listener --- src/ActivityPub.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ActivityPub.php b/src/ActivityPub.php index 1ed7c7f..70114a7 100644 --- a/src/ActivityPub.php +++ b/src/ActivityPub.php @@ -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();