Skip to content

Commit

Permalink
Merge pull request #67 from Troopers/feature/legal-user
Browse files Browse the repository at this point in the history
Inject router interface
  • Loading branch information
paulandrieux authored Sep 20, 2018
2 parents f8fd153 + 84d0ac0 commit cb9d54e
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 cb9d54e

Please sign in to comment.