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