diff --git a/src/ServiceProvider/BaseServiceProvider.php b/src/ServiceProvider/BaseServiceProvider.php index 76156e891..8dcdc7e4f 100644 --- a/src/ServiceProvider/BaseServiceProvider.php +++ b/src/ServiceProvider/BaseServiceProvider.php @@ -217,7 +217,9 @@ public function register(Container $container) $this->addService($container, TaxRuleRepositoryInterface::class, $container->get(TaxRuleRepository::class)); $this->addService($container, TaxRepositoryInterface::class, $container->get(TaxRepository::class)); $this->addService($container, CartRepositoryInterface::class, $container->get(CartRepository::class)); - $this->addService($container, PaymentMethodLangRepositoryInterface::class, $container->get(PaymentMethodLangRepository::class)); + + $service = $this->addService($container, PaymentMethodLangRepositoryInterface::class, PaymentMethodLangRepository::class); + $this->addServiceArgument($service, 'MolPaymentMethodLang'); $this->addService($container, OrderTotalProviderInterface::class, $container->get(OrderTotalProvider::class)); $this->addService($container, PaymentFeeProviderInterface::class, $container->get(PaymentFeeProvider::class));