Total Complexity | 4 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class ChargifyServiceProvider extends ServiceProvider |
||
14 | { |
||
15 | /** |
||
16 | * Indicates if loading of the provider is deferred. |
||
17 | * |
||
18 | * @var bool |
||
19 | */ |
||
20 | protected $defer = false; |
||
21 | |||
22 | /** |
||
23 | * Bootstrap the application events. |
||
24 | * |
||
25 | * @return void |
||
26 | */ |
||
27 | public function boot() |
||
28 | { |
||
29 | // Publish config files |
||
30 | $this->publishes([ |
||
31 | __DIR__.'/../../config/config.php' => config_path('chargify.php'), |
||
|
|||
32 | ]); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Register the service provider. |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | public function register() |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * Register the application bindings. |
||
49 | * |
||
50 | * @return void |
||
51 | */ |
||
52 | private function registerPayPal() |
||
53 | { |
||
54 | $this->app->singleton('chargify', static function () { |
||
55 | return new ChargifyClient(); |
||
56 | }); |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * Merges user's and paypal's configs. |
||
61 | * |
||
62 | * @return void |
||
63 | */ |
||
64 | private function mergeConfig() |
||
69 | ); |
||
70 | } |
||
72 |