Skip to content

Commit 3f16611

Browse files
committed
Fix config path
1 parent d5b6ebd commit 3f16611

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/WorkflowServiceProvider.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ class WorkflowServiceProvider extends ServiceProvider
2020
*/
2121
public function boot()
2222
{
23-
$configPath = __DIR__ . '/../config/config.php';
23+
$configPath = $this->configPath();
2424

25-
$this->publishes([$configPath => config_path('workflow.php')], 'config');
25+
$this->publishes([
26+
$configPath => config_path('workflow.php')
27+
], 'config');
2628
}
2729

2830
/**
@@ -33,7 +35,7 @@ public function boot()
3335
public function register()
3436
{
3537
$this->mergeConfigFrom(
36-
__DIR__.'/../config/workflow.php',
38+
$this->configPath(),
3739
'workflow'
3840
);
3941

@@ -46,6 +48,11 @@ public function register()
4648
);
4749
}
4850

51+
protected function configPath()
52+
{
53+
return __DIR__ . '/../config/workflow.php';
54+
}
55+
4956
/**
5057
* Get the services provided by the provider.
5158
*

0 commit comments

Comments
 (0)