Issues (2)

src/ServiceProvider.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Fomvasss\LaravelEUS;
4
5
use Fomvasss\LaravelEUS\EUSGenerator;
6
7
class ServiceProvider extends \Illuminate\Support\ServiceProvider
8
{
9
    protected $defer = false;
10
    
11
    /**
12
     * Bootstrap the application services.
13
     *
14
     * @return void
15
     */
16
    public function boot()
17
    {
18
        $this->publishedConfig();
19
    }
20
21
    /**
22
     * Register the application services.
23
     *
24
     * @return void
25
     */
26
    public function register()
27
    {
28
        $this->mergeConfigFrom(__DIR__.'/../config/eus.php', 'eus');
29
30
        $this->app->bind(\Fomvasss\LaravelEUS\Contracts\EUSGenerator::class, function () {
31
            return new EUSGenerator($this->app);
32
        });
33
    }
34
35
    protected function publishedConfig()
36
    {
37
        $this->publishes([
38
            __DIR__.'/../config/eus.php' => config_path('eus.php')
0 ignored issues
show
The function config_path was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

38
            __DIR__.'/../config/eus.php' => /** @scrutinizer ignore-call */ config_path('eus.php')
Loading history...
39
        ], 'eus');
40
    }
41
}
42