Skip to content

Commit fb040d8

Browse files
authored
Merge pull request #10 from TomHAnderson/hotfix/publish-config
Fixed publish config to config group
2 parents 8edf74d + 14afd3c commit fb040d8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/ServiceProvider.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ public function register(): void
2323
public function boot(): void
2424
{
2525
$this->publishes([
26-
__DIR__ . '/../config/hal-doctrine.php'
27-
=> config_path('hal-doctrine.php'),
28-
]);
26+
$this->getConfigPath() => config_path('hal-doctrine.php'),
27+
], 'config');
28+
}
29+
30+
protected function getConfigPath(): string
31+
{
32+
return __DIR__ . '/../config/hal-doctrine.php';
2933
}
3034
}

0 commit comments

Comments
 (0)