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;