Code Coverage  | 
      ||||||||||
Classes and Traits  | 
       Functions and Methods  | 
       Lines  | 
      ||||||||
| Total |         | 
       100.00%  | 
       1 / 1  | 
               | 
       100.00%  | 
       2 / 2  | 
       CRAP |         | 
       100.00%  | 
       6 / 6  | 
      
| SiteGeneratorServiceProvider |         | 
       100.00%  | 
       1 / 1  | 
               | 
       100.00%  | 
       2 / 2  | 
       2 |         | 
       100.00%  | 
       6 / 6  | 
      
| boot |         | 
       100.00%  | 
       1 / 1  | 
       1 |         | 
       100.00%  | 
       4 / 4  | 
      |||
| register |         | 
       100.00%  | 
       1 / 1  | 
       1 |         | 
       100.00%  | 
       2 / 2  | 
      |||
| 1 | <?php | 
| 2 | |
| 3 | namespace Qmp\Laravel\SiteGeneratorDetail\Providers; | 
| 4 | |
| 5 | use Illuminate\Support\ServiceProvider; | 
| 6 | use Qmp\Laravel\MicroService\DbConnection\DbConnection; | 
| 7 | |
| 8 | class SiteGeneratorServiceProvider 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 | $path = realpath(__DIR__.'/../../config/site-generator.php'); | 
| 20 | $this->mergeConfigFrom($path, 'site-generator'); | 
| 21 | } | 
| 22 | |
| 23 | |
| 24 | public function register() | 
| 25 | { | 
| 26 | DbConnection::mergeFromFile(realpath(__DIR__.'/../../config/connection.php')); | 
| 27 | } | 
| 28 | } |