Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class LaravelDarajaServiceProvider extends \Illuminate\Support\ServiceProvider |
||
8 | { |
||
9 | /** |
||
10 | * Package path to config. |
||
11 | */ |
||
12 | const CONFIG_PATH = __DIR__.'/../config/laravel-daraja.php'; |
||
13 | |||
14 | /** |
||
15 | * Perform post-registration booting of services. |
||
16 | * |
||
17 | * @return void |
||
18 | */ |
||
19 | public function boot() |
||
20 | { |
||
21 | $this->publishes([ |
||
22 | self::CONFIG_PATH => config_path('laravel-daraja.php'), |
||
23 | ], 'config'); |
||
24 | |||
25 | if ($this->app->runningInConsole()) { |
||
26 | $this->commands([ |
||
27 | RegisterC2BUrls::class, |
||
28 | ]); |
||
29 | } |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Register any package services. |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | public function register() |
||
43 | }); |
||
44 | } |
||
46 |