diff --git a/src/Sylius/Bundle/PayumBundle/Payum/Be2bill/Action/NotifyAction.php b/src/Sylius/Bundle/PayumBundle/Payum/Be2bill/Action/NotifyAction.php
index 544c23a57b..a45b163272 100644
--- a/src/Sylius/Bundle/PayumBundle/Payum/Be2bill/Action/NotifyAction.php
+++ b/src/Sylius/Bundle/PayumBundle/Payum/Be2bill/Action/NotifyAction.php
@@ -21,7 +21,6 @@ use SM\Factory\FactoryInterface;
use Sylius\Bundle\PayumBundle\Payum\Action\AbstractPaymentStateAwareAction;
use Sylius\Bundle\PayumBundle\Payum\Request\GetStatus;
use Sylius\Component\Resource\Repository\RepositoryInterface;
-use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
@@ -40,11 +39,6 @@ class NotifyAction extends AbstractPaymentStateAwareAction
*/
protected $paymentRepository;
- /**
- * @var EventDispatcherInterface
- */
- protected $eventDispatcher;
-
/**
* @var ObjectManager
*/
@@ -58,7 +52,6 @@ class NotifyAction extends AbstractPaymentStateAwareAction
public function __construct(
Api $api,
RepositoryInterface $paymentRepository,
- EventDispatcherInterface $eventDispatcher,
ObjectManager $objectManager,
FactoryInterface $factory,
$identifier
@@ -67,7 +60,6 @@ class NotifyAction extends AbstractPaymentStateAwareAction
$this->api = $api;
$this->paymentRepository = $paymentRepository;
- $this->eventDispatcher = $eventDispatcher;
$this->objectManager = $objectManager;
$this->identifier = $identifier;
}
diff --git a/src/Sylius/Bundle/PayumBundle/Payum/Paypal/Action/NotifyOrderAction.php b/src/Sylius/Bundle/PayumBundle/Payum/Paypal/Action/NotifyOrderAction.php
index 1a680e5c80..a692268477 100644
--- a/src/Sylius/Bundle/PayumBundle/Payum/Paypal/Action/NotifyOrderAction.php
+++ b/src/Sylius/Bundle/PayumBundle/Payum/Paypal/Action/NotifyOrderAction.php
@@ -19,30 +19,22 @@ use SM\Factory\FactoryInterface;
use Sylius\Bundle\PayumBundle\Payum\Action\AbstractPaymentStateAwareAction;
use Sylius\Bundle\PayumBundle\Payum\Request\GetStatus;
use Sylius\Component\Payment\Model\PaymentInterface;
-use Symfony\Component\EventDispatcher\EventDispatcherInterface;
class NotifyOrderAction extends AbstractPaymentStateAwareAction
{
- /**
- * @var EventDispatcherInterface
- */
- protected $eventDispatcher;
-
/**
* @var ObjectManager
*/
protected $objectManager;
/**
- * @param EventDispatcherInterface $eventDispatcher
* @param ObjectManager $objectManager
* @param FactoryInterface $factory
*/
- public function __construct(EventDispatcherInterface $eventDispatcher, ObjectManager $objectManager, FactoryInterface $factory)
+ public function __construct(ObjectManager $objectManager, FactoryInterface $factory)
{
parent::__construct($factory);
- $this->eventDispatcher = $eventDispatcher;
$this->objectManager = $objectManager;
}
diff --git a/src/Sylius/Bundle/PayumBundle/Resources/config/services.xml b/src/Sylius/Bundle/PayumBundle/Resources/config/services.xml
index bb2130d3b7..ddb1b04c14 100644
--- a/src/Sylius/Bundle/PayumBundle/Resources/config/services.xml
+++ b/src/Sylius/Bundle/PayumBundle/Resources/config/services.xml
@@ -42,7 +42,6 @@
-
@@ -73,7 +72,6 @@
-
id
diff --git a/src/Sylius/Bundle/PayumBundle/spec/Payum/Paypal/Action/NotifyOrderActionSpec.php b/src/Sylius/Bundle/PayumBundle/spec/Payum/Paypal/Action/NotifyOrderActionSpec.php
index 0f60b4d04d..956028ed24 100644
--- a/src/Sylius/Bundle/PayumBundle/spec/Payum/Paypal/Action/NotifyOrderActionSpec.php
+++ b/src/Sylius/Bundle/PayumBundle/spec/Payum/Paypal/Action/NotifyOrderActionSpec.php
@@ -25,17 +25,15 @@ use Sylius\Component\Payment\Model\Payment;
use Sylius\Component\Payment\Model\PaymentInterface as PaymentModelInterface;
use Sylius\Component\Payment\PaymentTransitions;
use Sylius\Component\Resource\StateMachine\StateMachineInterface;
-use Symfony\Component\EventDispatcher\EventDispatcherInterface;
class NotifyOrderActionSpec extends ObjectBehavior
{
function let(
- EventDispatcherInterface $eventDispatcher,
ObjectManager $objectManager,
FactoryInterface $factory,
PaymentInterface $payment
) {
- $this->beConstructedWith($eventDispatcher, $objectManager, $factory);
+ $this->beConstructedWith($objectManager, $factory);
$this->setPayment($payment);
}