File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 5
5
use Roots \Acorn \ServiceProvider ;
6
6
use Illuminate \Support \Facades \Blade ;
7
7
8
- use function Roots \config ;
9
- use function Roots \base_path ;
10
- use function Roots \config_path ;
11
-
12
8
class SageSvgServiceProvider extends ServiceProvider
13
9
{
14
10
/**
@@ -32,7 +28,7 @@ public function boot()
32
28
{
33
29
$ this ->directives ();
34
30
$ this ->publishes ([
35
- __DIR__ . '/../config/svg.php ' => config_path ('svg.php ' )
31
+ __DIR__ . '/../config/svg.php ' => $ this -> app -> configPath ('svg.php ' )
36
32
]);
37
33
}
38
34
@@ -43,9 +39,11 @@ public function boot()
43
39
*/
44
40
protected function config ()
45
41
{
46
- return collect (['path ' => base_path ('dist ' )])
47
- ->merge (config ('svg ' , []))
48
- ->all ();
42
+ return collect ([
43
+ 'path ' => $ this ->app ->basePath ('dist ' )
44
+ ])
45
+ ->merge ($ this ->app ->config ->get ('svg ' , []))
46
+ ->all ();
49
47
}
50
48
51
49
/**
You can’t perform that action at this time.
0 commit comments