Skip to content

Commit

Permalink
replace logger definition
Browse files Browse the repository at this point in the history
  • Loading branch information
mmasiukevich committed Apr 5, 2022
1 parent a2a46d9 commit 37410a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Module/SqlStorageModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

namespace ServiceBus\Storage\Module;

use Psr\Log\LoggerInterface;
use ServiceBus\Common\Module\ServiceBusModule;
use ServiceBus\Storage\Common\DatabaseAdapter;
use ServiceBus\Storage\Common\StorageConfiguration;
Expand Down Expand Up @@ -100,7 +101,7 @@ public function boot(ContainerBuilder $containerBuilder): void

if (true === $this->loggerEnabled)
{
$adapterDefinitionParameters[] = new Reference('service_bus.logger');
$adapterDefinitionParameters[] = new Reference(LoggerInterface::class);
}

$adapterDefinition = new Definition($adapterClass, $adapterDefinitionParameters);
Expand Down

0 comments on commit 37410a9

Please sign in to comment.