| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class LaravelCorsServiceProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Bootstrap any application services. |
||
| 13 | * |
||
| 14 | * @param \Illuminate\Foundation\Http\Kernel $kernel |
||
| 15 | * |
||
| 16 | * @return void |
||
| 17 | */ |
||
| 18 | 368 | public function boot(Kernel $kernel) |
|
| 19 | { |
||
| 20 | 368 | $this->publishes([__DIR__.'/../config/cors.php' => config_path('cors.php')], 'config'); |
|
| 21 | |||
| 22 | 368 | $kernel->prependMiddleware(CorsWrapper::class); |
|
| 23 | 368 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * Register any application services. |
||
| 27 | * |
||
| 28 | * @return void |
||
| 29 | */ |
||
| 30 | 368 | public function register() |
|
| 36 | 368 | }); |
|
| 37 | 368 | } |
|
| 39 |