Skip to content

Commit

Permalink
Fix: Prevent ServiceProvider from overwriting bindings (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpyw authored Mar 12, 2020
1 parent baf1178 commit eeb5004
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/StickinessServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit eeb5004

Please sign in to comment.