Total Complexity | 5 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
5 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
||
6 | { |
||
7 | 13 | public function boot() |
|
8 | { |
||
9 | 13 | if ($this->app->runningInConsole()) { |
|
10 | 13 | $this->publishes([ |
|
11 | 13 | __DIR__.'/../config/temporal-key.php' => config_path('temporal-key.php'), |
|
12 | 13 | ], 'config'); |
|
13 | |||
14 | 13 | $this->commands([ |
|
15 | 13 | \TemporalKey\Console\Commands\PruneTemporalKeysCommand::class, |
|
16 | 13 | ]); |
|
17 | |||
18 | 13 | $this->registerMigrations(); |
|
19 | } |
||
20 | } |
||
21 | |||
22 | 13 | public function register() |
|
23 | { |
||
24 | 13 | $this->mergeConfigFrom(__DIR__.'/../config/temporal-key.php', 'temporal-key'); |
|
25 | } |
||
26 | |||
27 | 13 | protected function registerMigrations() |
|
31 | } |
||
32 | } |
||
33 | } |
||
34 |