From 1cdce5a2267ae5b4e8033b623e3fb00b39e8a75a Mon Sep 17 00:00:00 2001 From: Pierre du Plessis Date: Sat, 17 Mar 2018 12:54:08 +0200 Subject: [PATCH] Fix RouteRedirectHandler --- src/Handler/RouteRedirectHandler.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Handler/RouteRedirectHandler.php b/src/Handler/RouteRedirectHandler.php index d26ec9b..d3a0355 100644 --- a/src/Handler/RouteRedirectHandler.php +++ b/src/Handler/RouteRedirectHandler.php @@ -12,6 +12,7 @@ namespace SolidWorx\SimpleResponseBundle\Handler; use SolidWorx\SimpleResponseBundle\ResponseHandlerInterface; +use SolidWorx\SimpleResponseBundle\Response\RouteRedirectResponse; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\RouterInterface; @@ -35,6 +36,6 @@ public function handle($object): Response public function supports($object): bool { - return $object instanceof RedirectResponse; + return $object instanceof RouteRedirectResponse; } -} \ No newline at end of file +}