Skip to content

Commit

Permalink
Inject router interface
Browse files Browse the repository at this point in the history
  • Loading branch information
paulandrieux committed Sep 20, 2018
1 parent cd32b10 commit 84d0ac0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Helper/PaymentDirectHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions Helper/PaymentHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 84d0ac0

Please sign in to comment.