Skip to content

Commit c7b4591

Browse files
authored
Use app container directly instead of helpers
1 parent ad19c93 commit c7b4591

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/SageSvgServiceProvider.php

+6-8
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
use Roots\Acorn\ServiceProvider;
66
use Illuminate\Support\Facades\Blade;
77

8-
use function Roots\config;
9-
use function Roots\base_path;
10-
use function Roots\config_path;
11-
128
class SageSvgServiceProvider extends ServiceProvider
139
{
1410
/**
@@ -32,7 +28,7 @@ public function boot()
3228
{
3329
$this->directives();
3430
$this->publishes([
35-
__DIR__ . '/../config/svg.php' => config_path('svg.php')
31+
__DIR__ . '/../config/svg.php' => $this->app->configPath('svg.php')
3632
]);
3733
}
3834

@@ -43,9 +39,11 @@ public function boot()
4339
*/
4440
protected function config()
4541
{
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();
4947
}
5048

5149
/**

0 commit comments

Comments
 (0)