| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 30 | public function register() |
|
| 23 | { |
||
| 24 | 30 | $this->mergeConfigFrom(__DIR__.'/../config/openfoodfacts.php', 'openfoodfacts'); |
|
| 25 | |||
| 26 | // Bindings for each environment |
||
| 27 | 30 | $this->app->singleton('openfoodfacts', fn (Container $app) => new OpenFoodFacts($app, environment: 'food')); |
|
| 28 | 30 | $this->app->singleton('openbeautyfacts', fn (Container $app) => new OpenFoodFacts($app, environment: 'beauty')); |
|
| 29 | 30 | $this->app->singleton('openpetfoodfacts', fn (Container $app) => new OpenFoodFacts($app, environment: 'pet')); |
|
| 30 | } |
||
| 32 |