Skip to content

Commit

Permalink
Fix RouteRedirectHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup committed Mar 17, 2018
1 parent 987b2d6 commit 1cdce5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Handler/RouteRedirectHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -35,6 +36,6 @@ public function handle($object): Response

public function supports($object): bool
{
return $object instanceof RedirectResponse;
return $object instanceof RouteRedirectResponse;
}
}
}

0 comments on commit 1cdce5a

Please sign in to comment.