From 6464354fdf2760d351052fa130741fa81877e5f5 Mon Sep 17 00:00:00 2001 From: Bartosz Sosnowski Date: Thu, 19 Dec 2024 09:29:40 +0100 Subject: [PATCH] hotfix --- src/Core/Events/Events.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Core/Events/Events.php b/src/Core/Events/Events.php index 3a823311f..ef6e3598d 100644 --- a/src/Core/Events/Events.php +++ b/src/Core/Events/Events.php @@ -19,6 +19,7 @@ use OxidSolutionCatalysts\PayPal\Core\PayPalDefinitions; use OxidSolutionCatalysts\PayPal\Service\Logger; use OxidSolutionCatalysts\PayPal\Service\ModuleSettings; +use OxidSolutionCatalysts\PayPal\Service\UserRepository; use OxidSolutionCatalysts\PayPal\Traits\ServiceContainer; use OxidSolutionCatalysts\PayPal\Service\StaticContent; use OxidEsales\EshopCommunity\Internal\Container\ContainerFactory; @@ -155,11 +156,14 @@ private static function getModuleSettingsService(): ?ModuleSettings /** @var Logger $logger */ $logger = $container->get(Logger::class); + $userRepository = $container->get(UserRepository::class); + return new ModuleSettings( $moduleSettingsBridge, $context, $moduleConfigurationDaoBridgeInterface, - $logger + $logger, + $userRepository ); } catch (NotFoundExceptionInterface | ContainerExceptionInterface $exception) { Registry::getUtilsView()->addErrorToDisplay('OSC_PAYPAL_INSTALLPROCESS_FAILED');