Total Complexity | 5 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Coverage | 95% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class ServiceProvider extends \Illuminate\Support\ServiceProvider implements DeferrableProvider |
||
10 | { |
||
11 | 22 | public function boot() |
|
12 | { |
||
13 | 22 | if ($this->app->runningInConsole()) { |
|
14 | 22 | $this->publishes([ |
|
15 | 22 | __DIR__ . '/../config/email-change-verification.php' => config_path('email-change-verification.php'), |
|
16 | 22 | ], 'config'); |
|
17 | |||
18 | |||
19 | 22 | $this->commands([ |
|
20 | 22 | ClearEmailChangesCommand::class, |
|
21 | 22 | ]); |
|
22 | } |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * Register the service provider. |
||
27 | * |
||
28 | * @return void |
||
29 | */ |
||
30 | 22 | public function register() |
|
31 | { |
||
32 | 22 | $this->mergeConfigFrom(__DIR__ . '/../config/email-change-verification.php', 'email-change-verification'); |
|
33 | |||
34 | 22 | $this->registerEmailChangeBroker(); |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * Register the email change broker instance. |
||
39 | * |
||
40 | * @return void |
||
41 | */ |
||
42 | 22 | protected function registerEmailChangeBroker() |
|
50 | 22 | }); |
|
51 | } |
||
52 | |||
53 | /** |
||
54 | * Get the services provided by the provider. |
||
55 | * |
||
56 | * @return array |
||
57 | */ |
||
58 | 1 | public function provides() |
|
61 | } |
||
62 | } |
||
63 |