Skip to content

Commit

Permalink
Merge pull request #376 from OXID-eSales/hotfix
Browse files Browse the repository at this point in the history
hotfix
  • Loading branch information
mariolorenz authored Dec 19, 2024
2 parents 35c315d + 6464354 commit 3b085f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Core/Events/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 3b085f0

Please sign in to comment.