| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Nord\Lumen\Cors; |
||
| 29 | protected function registerBindings(): void |
||
| 30 | { |
||
| 31 | // TODO: Change to bind the implementation to the interface instead. |
||
| 32 | $this->app->bind(CorsService::class, function () { |
||
| 33 | return new CorsService(config(self::CONFIG_KEY)); |
||
| 34 | }); |
||
| 35 | |||
| 36 | $this->app->alias(CorsService::class, CorsServiceContract::class); |
||
| 37 | } |
||
| 49 |