Skip to content

Commit

Permalink
Register a shared binding in the container in register method
Browse files Browse the repository at this point in the history
  • Loading branch information
zingimmick committed Feb 16, 2022
1 parent 9d94f13 commit 3af4a22
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/SkeletonServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ public function boot(): void
if ($this->app->runningInConsole()) {
$this->publishes([
$this->getConfigPath() => config_path('skeleton.php'),
], 'config');
], 'skeleton-config');
}

$this->app->singleton('skeleton', SkeletonManager::class);
}

public function register(): void
{
$this->mergeConfigFrom($this->getConfigPath(), 'skeleton');
$this->app->singleton('skeleton', SkeletonManager::class);
}

protected function getConfigPath(): string
Expand Down

0 comments on commit 3af4a22

Please sign in to comment.