Skip to content

Commit

Permalink
use Interface instead of class
Browse files Browse the repository at this point in the history
  • Loading branch information
mariolorenz committed Oct 7, 2023
1 parent 4c2f577 commit 5c75970
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Core/Events/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;
use Psr\Log\LoggerInterface;
use Symfony\Component\Console\Output\BufferedOutput;

class Events
Expand Down Expand Up @@ -163,13 +164,13 @@ private static function getModuleSettingsService(): ModuleSettings
$context = $container->get(ContextInterface::class);
/** @var ModuleConfigurationDaoBridgeInterface $moduleConfigurationDaoBridgeInterface */
$moduleConfigurationDaoBridgeInterface = $container->get(ModuleConfigurationDaoBridgeInterface::class);
$logger = $container->get('OxidSolutionCatalysts\PayPal\Logger');

/** @var LoggerInterface $loggerInterface */
$loggerInterface = $container->get(LoggerInterface::class);
return new ModuleSettings(
$moduleSettingsBridge,
$context,
$moduleConfigurationDaoBridgeInterface,
$logger
$loggerInterface
);
}
}

0 comments on commit 5c75970

Please sign in to comment.