Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
3 / 3 |
| CorsProvider | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
| boot | |
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
|||
| 1 | <?php |
| 2 | |
| 3 | namespace Qmp\Laravel\MicroService\Providers; |
| 4 | |
| 5 | use Illuminate\Support\ServiceProvider; |
| 6 | |
| 7 | use Illuminate\Contracts\Http\Kernel; |
| 8 | use Qmp\Laravel\MicroService\Middleware\Cors; |
| 9 | |
| 10 | class CorsProvider extends ServiceProvider |
| 11 | { |
| 12 | public function boot() |
| 13 | { |
| 14 | $kernel = $this->app->make(Kernel::class); |
| 15 | $kernel->pushMiddleware(Cors::class); |
| 16 | } |
| 17 | } |