| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 9 | class GtinServiceProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Boot the package |
||
| 13 | * |
||
| 14 | * @return void |
||
| 15 | */ |
||
| 16 | public function boot() |
||
| 17 | { |
||
| 18 | if ($this->app->runningInConsole()) { |
||
| 19 | $this->publishes([ |
||
| 20 | __DIR__ . '/../../config/gtin.php' => config_path('gtin.php'), |
||
| 21 | ], 'config'); |
||
| 22 | } |
||
| 23 | |||
| 24 | $this->app->singleton('gtin', Gtin::class); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function register() |
||
| 36 | }); |
||
| 37 | } |
||
| 39 |