| Total Complexity | 3 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class GeldServiceProvider extends ServiceProvider |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * {@inheritdoc} |
||
| 22 | */ |
||
| 23 | 4 | public function boot() |
|
| 24 | { |
||
| 25 | // configuration |
||
| 26 | 4 | $this->publishes([ |
|
| 27 | 4 | __DIR__ . '/../config/geld.php' => config_path('geld.php') |
|
| 28 | ]); |
||
| 29 | |||
| 30 | // migrations |
||
| 31 | 4 | $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); |
|
| 32 | |||
| 33 | 4 | if ($this->app->runningInConsole()) { |
|
| 34 | 4 | $this->commands([ |
|
| 35 | 4 | UpdateExchangeRatesCommand::class, |
|
| 36 | CheckRetentionCommand::class, |
||
| 37 | DataIncineratorCommand::class, |
||
| 38 | ]); |
||
| 39 | } |
||
| 40 | 4 | } |
|
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | 4 | public function register() |
|
| 58 | 4 | }); |
|
| 59 | 4 | } |
|
| 61 |