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%
5 / 5
PurchaseOrderProvider
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
5 / 5
 boot
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
3 / 3
 register
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
1<?php
2namespace Qmp\Laravel\PurchaseOrder\Providers;
3
4use Illuminate\Support\ServiceProvider;
5use Qmp\Laravel\MicroService\DbConnection\DbConnection;
6
7class PurchaseOrderProvider extends ServiceProvider
8{
9    /**
10     * Boot the service provider.
11     *
12     * @return void
13     */
14    public function boot()
15    {
16        // Not necessary if commands are src/Console folder
17        // if ($this->app->runningInConsole()) {
18        //     $this->commands([
19        //         GetMetrics::class,
20        //     ]);
21        // }
22
23        // Load migration
24        $this->loadMigrationsFrom(__DIR__.'/../database/migrations/');
25        $this->loadViewsFrom(realpath(__DIR__ . '/../Views'), 'po');
26    }
27
28    public function register()
29    {
30        DbConnection::mergeFromFile(realpath(__DIR__.'/../../config/connection.php'));
31 
32    }
33
34}