Skip to content

Commit eeb5004

Browse files
authored
Fix: Prevent ServiceProvider from overwriting bindings (#18)
1 parent baf1178 commit eeb5004

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/StickinessServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function register(): void
4242
$this->app->singleton(StickinessEventListener::class);
4343
$this->app->singleton('db.factory', ConnectionFactory::class);
4444

45-
$this->app->bind(StickinessResolverInterface::class, IpBasedResolver::class);
46-
$this->app->bind(JobInitializerInterface::class, AlwaysModifiedInitializer::class);
45+
$this->app->bindIf(StickinessResolverInterface::class, IpBasedResolver::class);
46+
$this->app->bindIf(JobInitializerInterface::class, AlwaysModifiedInitializer::class);
4747
}
4848
}

0 commit comments

Comments
 (0)