Skip to content

Commit

Permalink
Merge pull request #129 from mabdullahsari/patch-1
Browse files Browse the repository at this point in the history
Alias `health` in lieu of a separate binding
  • Loading branch information
freekmurze authored Oct 21, 2022
2 parents 051a0d2 + 268dc69 commit 896efcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HealthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public function configurePackage(Package $package): void

public function packageRegistered(): void
{
$this->app->singleton(Health::class, fn () => new Health());
$this->app->bind('health', Health::class);
$this->app->singleton(Health::class);
$this->app->alias(Health::class, 'health');

$this->app->bind(ResultStore::class, fn () => ResultStores::createFromConfig()->first());
}
Expand Down

0 comments on commit 896efcb

Please sign in to comment.