| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Nord\Lumen\Cors; |
||
| 13 | public function register(): void |
||
| 14 | { |
||
| 15 | // In Lumen application configuration files needs to be loaded implicitly |
||
| 16 | if ($this->app instanceof \Laravel\Lumen\Application) { |
||
| 17 | $this->app->configure(self::CONFIG_KEY); |
||
| 18 | } else { |
||
| 19 | $this->publishes([$this->configPath() => config_path('cors.php')]); |
||
|
|
|||
| 20 | } |
||
| 21 | |||
| 22 | $this->registerBindings(); |
||
| 23 | } |
||
| 49 |