diff --git a/src/Checkout/Cart/ExpressCartItemAddRoute.php b/src/Checkout/Cart/ExpressCartItemAddRoute.php
index f5358e4e4..d83159587 100644
--- a/src/Checkout/Cart/ExpressCartItemAddRoute.php
+++ b/src/Checkout/Cart/ExpressCartItemAddRoute.php
@@ -5,6 +5,7 @@
use Kiener\MolliePayments\Service\Cart\CartBackupService;
use Kiener\MolliePayments\Service\CartServiceInterface;
+use Psr\Container\ContainerInterface;
use Shopware\Core\Checkout\Cart\Cart;
use Shopware\Core\Checkout\Cart\LineItem\LineItemCollection;
use Shopware\Core\Checkout\Cart\SalesChannel\AbstractCartItemAddRoute;
@@ -29,10 +30,10 @@ class ExpressCartItemAddRoute extends AbstractCartItemAddRoute
*/
private $cartService;
- public function __construct(AbstractCartItemAddRoute $cartItemAddRoute, CartBackupService $cartBackupService, CartServiceInterface $cartService)
+ public function __construct(AbstractCartItemAddRoute $cartItemAddRoute, ContainerInterface $container, CartServiceInterface $cartService)
{
$this->cartItemAddRoute = $cartItemAddRoute;
- $this->cartBackupService = $cartBackupService;
+ $this->cartBackupService = $container->get(CartBackupService::class);
$this->cartService = $cartService;
}
diff --git a/src/Resources/config/services.xml b/src/Resources/config/services.xml
index 15fd3685b..6f10ede35 100644
--- a/src/Resources/config/services.xml
+++ b/src/Resources/config/services.xml
@@ -233,7 +233,7 @@
-
+
diff --git a/src/Resources/config/services/controller.xml b/src/Resources/config/services/controller.xml
index 575b8bfb2..a31ed2697 100644
--- a/src/Resources/config/services/controller.xml
+++ b/src/Resources/config/services/controller.xml
@@ -181,7 +181,6 @@
-