From 03b99117be4464dfd16cbe8401ff585ed3feb11a Mon Sep 17 00:00:00 2001 From: McOffsky Date: Mon, 3 Jun 2013 15:16:21 +0300 Subject: [PATCH] Allowed usage of custom router --- Annotation/Wizard/AnnotationHandler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +}