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 +}