diff --git a/Annotation/Wizard/AnnotationHandler.php b/Annotation/Wizard/AnnotationHandler.php index 0f7611d..8d2bdea 100644 --- a/Annotation/Wizard/AnnotationHandler.php +++ b/Annotation/Wizard/AnnotationHandler.php @@ -3,7 +3,7 @@ namespace Ibrows\Bundle\NewsletterBundle\Annotation\Wizard; use Symfony\Component\HttpKernel\Event\FilterControllerEvent; -use Symfony\Bundle\FrameworkBundle\Routing\Router; +use Symfony\Component\Routing\RouterInterface; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; @@ -16,7 +16,7 @@ class AnnotationHandler protected $currentAnnotation; protected $currentAnnotationKey; - public function __construct(Router $router) + public function __construct(RouterInterface $router) { $this->router = $router; } @@ -155,4 +155,4 @@ public function getStepUrl(Annotation $annotation) throw new \InvalidArgumentException("No route found"); } -} \ No newline at end of file +}