Skip to content

Commit

Permalink
Merge pull request #10 from TomHAnderson/hotfix/publish-config
Browse files Browse the repository at this point in the history
Fixed publish config to config group
  • Loading branch information
TomHAnderson authored Feb 2, 2022
2 parents 8edf74d + 14afd3c commit fb040d8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ public function register(): void
public function boot(): void
{
$this->publishes([
__DIR__ . '/../config/hal-doctrine.php'
=> config_path('hal-doctrine.php'),
]);
$this->getConfigPath() => config_path('hal-doctrine.php'),
], 'config');
}

protected function getConfigPath(): string
{
return __DIR__ . '/../config/hal-doctrine.php';
}
}

0 comments on commit fb040d8

Please sign in to comment.