diff --git a/src/StickinessServiceProvider.php b/src/StickinessServiceProvider.php index e9fa94e..3547c3a 100644 --- a/src/StickinessServiceProvider.php +++ b/src/StickinessServiceProvider.php @@ -42,7 +42,7 @@ public function register(): void $this->app->singleton(StickinessEventListener::class); $this->app->singleton('db.factory', ConnectionFactory::class); - $this->app->bind(StickinessResolverInterface::class, IpBasedResolver::class); - $this->app->bind(JobInitializerInterface::class, AlwaysModifiedInitializer::class); + $this->app->bindIf(StickinessResolverInterface::class, IpBasedResolver::class); + $this->app->bindIf(JobInitializerInterface::class, AlwaysModifiedInitializer::class); } }