Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
5 / 5 |
| ApiGatewayProvider | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
5 / 5 |
| boot | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| register | |
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace Qmp\Laravel\ApiGateway\Providers; |
| 4 | |
| 5 | use Illuminate\Support\ServiceProvider; |
| 6 | use Qmp\Laravel\ApiGateway\Console\Commands\ListRoutesName; |
| 7 | |
| 8 | class ApiGatewayProvider 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 | * Register the service provider. |
| 22 | * |
| 23 | * @return void |
| 24 | */ |
| 25 | public function register() |
| 26 | { |
| 27 | $path = realpath(__DIR__.'/../../config/routes.php'); |
| 28 | $this->mergeConfigFrom($path, 'api_gateway'); |
| 29 | } |
| 30 | } |