From 84d0ac01f99d5e9c607bf4bf800f898f42a25c87 Mon Sep 17 00:00:00 2001 From: Paul Andrieux Date: Thu, 20 Sep 2018 18:33:43 +0200 Subject: [PATCH] Inject router interface --- Helper/PaymentDirectHelper.php | 4 ++-- Helper/PaymentHelper.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Helper/PaymentDirectHelper.php b/Helper/PaymentDirectHelper.php index 97d7142..885a045 100644 --- a/Helper/PaymentDirectHelper.php +++ b/Helper/PaymentDirectHelper.php @@ -4,8 +4,8 @@ use MangoPay\Money; use MangoPay\PayIn; -use Symfony\Bundle\FrameworkBundle\Routing\Router; use Symfony\Component\EventDispatcher\EventDispatcherInterface; +use Symfony\Component\Routing\Matcher\UrlMatcherInterface; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Troopers\MangopayBundle\Entity\Transaction; use Troopers\MangopayBundle\Entity\TransactionInterface; @@ -20,7 +20,7 @@ class PaymentDirectHelper private $router; private $dispatcher; - public function __construct(MangopayHelper $mangopayHelper, Router $router, EventDispatcherInterface $dispatcher) + public function __construct(MangopayHelper $mangopayHelper, UrlMatcherInterface $router, EventDispatcherInterface $dispatcher) { $this->mangopayHelper = $mangopayHelper; $this->router = $router; diff --git a/Helper/PaymentHelper.php b/Helper/PaymentHelper.php index 8e7fefc..c6542d0 100644 --- a/Helper/PaymentHelper.php +++ b/Helper/PaymentHelper.php @@ -10,7 +10,7 @@ use MangoPay\PayInPaymentDetailsPreAuthorized; use MangoPay\User; use MangoPay\Wallet; -use Symfony\Bundle\FrameworkBundle\Routing\Router; +use Symfony\Component\Routing\Matcher\UrlMatcherInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Troopers\MangopayBundle\Entity\CardPreAuthorisation; use Troopers\MangopayBundle\Entity\Order; @@ -30,7 +30,7 @@ class PaymentHelper protected $router; protected $dispatcher; - public function __construct(MangopayHelper $mangopayHelper, Router $router, EventDispatcherInterface $dispatcher) + public function __construct(MangopayHelper $mangopayHelper, UrlMatcherInterface $router, EventDispatcherInterface $dispatcher) { $this->mangopayHelper = $mangopayHelper; $this->router = $router;