1 | <?php |
||
2 | |||
3 | namespace GDCInfo; |
||
4 | |||
5 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
||
6 | { |
||
7 | 8 | public function boot(): void |
|
8 | { |
||
9 | 8 | if ($this->app->runningInConsole()) { |
|
10 | 8 | $this->publishes([ |
|
11 | 8 | __DIR__ . '/../config/gdc-info.php' => config_path('gdc-info.php'), |
|
12 | 8 | ], 'config'); |
|
13 | |||
14 | } |
||
15 | |||
16 | 8 | $this->commands([ |
|
17 | |||
18 | 8 | ]); |
|
19 | } |
||
20 | |||
21 | 8 | public function register(): void |
|
22 | { |
||
23 | 8 | $this->mergeConfigFrom(__DIR__ . '/../config/gdc-info.php', 'gdc-info'); |
|
24 | |||
25 | 8 | $this->app->singleton('gdc-info-manager', function ($app) { |
|
0 ignored issues
–
show
|
|||
26 | 2 | return new GDCInfoManager; |
|
27 | 8 | }); |
|
28 | } |
||
29 | } |
||
30 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.