Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | 11 | public function boot() |
|
8 | { |
||
9 | 11 | if ($this->app->runningInConsole()) { |
|
10 | 11 | $this->publishes([ |
|
11 | 11 | __DIR__ . '/../config/email-domain.php' => config_path('email-domain.php'), |
|
12 | 11 | ], 'config'); |
|
13 | |||
14 | 11 | $this->publishes([ |
|
15 | 11 | __DIR__ . '/../storage/email-domain' => config('email-domain.storage_path'), |
|
16 | 11 | ], 'storage'); |
|
17 | |||
18 | 11 | $this->commands([ |
|
19 | 11 | // |
|
20 | 11 | ]); |
|
21 | } |
||
22 | |||
23 | 11 | $this->app->bind('email-domain-checker', function () { |
|
24 | 9 | return new EmailDomainChecker(); |
|
25 | 11 | }); |
|
33 |