Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
4 / 4
ConsumerDataDictionaryServiceProvider
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
4 / 4
 boot
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
 register
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
1<?php
2
3namespace Qmp\Laravel\ConsumerDataDictionary\Providers;
4
5use Illuminate\Support\ServiceProvider;
6use Qmp\Laravel\MicroService\DbConnection\DbConnection;
7
8class ConsumerDataDictionaryServiceProvider extends ServiceProvider
9{
10    /**
11     * Boot the service provider.
12     *
13     * @return void
14     */
15    public function boot()
16    {
17        $this->loadMigrationsFrom(__DIR__.'/../database/migrations/');
18    }
19
20
21    public function register()
22    {
23        DbConnection::mergeFromFile(realpath(__DIR__.'/../../config/connection.php'));
24
25    }
26}