Conditions | 2 |
Paths | 2 |
Total Lines | 21 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | 24 | public function boot() |
|
14 | { |
||
15 | 24 | if ($this->app->runningInConsole()) { |
|
16 | 24 | $this->publishes([ |
|
17 | 24 | __DIR__ . '/../config/fmc-sso-client.php' => config_path('fmc-sso-client.php'), |
|
18 | ], 'config'); |
||
19 | |||
20 | |||
21 | 24 | $this->commands([ |
|
22 | // |
||
23 | ]); |
||
24 | } |
||
25 | |||
26 | 24 | $this->app->singleton(SSOClient::class, function () { |
|
27 | 23 | return new SSOClient( |
|
28 | 23 | config('services.fmc-sso.client_id', config('fmc-sso-client.client_id')), |
|
29 | 23 | config('services.fmc-sso.client_secret', config('fmc-sso-client.client_secret')), |
|
30 | 23 | config('services.fmc-sso.redirect_url', config('fmc-sso-client.redirect_url')), |
|
31 | 23 | config('services.fmc-sso.scopes', config('fmc-sso-client.scopes')), |
|
32 | 23 | config('services.fmc-sso.sso', config('fmc-sso-client.sso', [])), |
|
33 | 23 | config('services.fmc-sso.guzzle', config('fmc-sso-client.guzzle', [])), |
|
34 | ); |
||
43 |