| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class UssdServiceProvider extends ServiceProvider |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Bootstrap the application services. |
||
| 11 | */ |
||
| 12 | 49 | public function boot() |
|
| 13 | { |
||
| 14 | 49 | if ($this->app->runningInConsole()) { |
|
| 15 | 49 | $this->publishes([ |
|
| 16 | 49 | __DIR__.'/../config/ussd.php' => config_path('ussd.php'), |
|
| 17 | 49 | ], 'ussd-config'); |
|
| 18 | |||
| 19 | 49 | $this->publishes([ |
|
| 20 | 49 | __DIR__.'/../menus/menu.xsd' => menu_path('menu.xsd'), |
|
| 21 | 49 | ], 'ussd-schema'); |
|
| 22 | |||
| 23 | 49 | $this->publishes([ |
|
| 24 | 49 | __DIR__.'/../bin/simulator.json' => base_path('simulator.json'), |
|
| 25 | 49 | ], 'ussd-simulator'); |
|
| 26 | |||
| 27 | 49 | $this->commands([ |
|
| 28 | 49 | Commands\Validate::class, |
|
| 29 | 49 | ]); |
|
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Register the application services. |
||
| 35 | */ |
||
| 36 | 49 | public function register() |
|
| 39 | } |
||
| 40 | } |
||
| 41 |