Skip to content

Commit

Permalink
NTR: fix recursion in sw6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Sep 2, 2024
1 parent cc309a7 commit 23b3836
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/Checkout/Cart/ExpressCartItemAddRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@

<service id="Kiener\MolliePayments\Checkout\Cart\ExpressCartItemAddRoute" decorates="Shopware\Core\Checkout\Cart\SalesChannel\CartItemAddRoute" public="true">
<argument type="service" id=".inner"/>
<argument type="service" id="Kiener\MolliePayments\Service\Cart\CartBackupService"/>
<argument type="service" id="service_container"/>
<argument type="service" id="Kiener\MolliePayments\Service\CartService"/>
</service>

Expand Down
1 change: 0 additions & 1 deletion src/Resources/config/services/controller.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@
<argument type="service" id="Kiener\MolliePayments\Components\ApplePayDirect\ApplePayDirect"/>
<argument type="service" id="router"/>
<argument type="service" id="mollie_payments.logger"/>
<argument type="service" id="Kiener\MolliePayments\Service\Cart\CartBackupService"/>
<argument type="service" id="Kiener\MolliePayments\Compatibility\Bundles\FlowBuilder\FlowBuilderFactory"/>
<argument type="service"
id="Kiener\MolliePayments\Compatibility\Bundles\FlowBuilder\FlowBuilderEventFactory"/>
Expand Down

0 comments on commit 23b3836

Please sign in to comment.