1 | <?php |
||
17 | class PaystackServiceProvider extends ServiceProvider |
||
18 | { |
||
19 | |||
20 | /* |
||
21 | * Indicates if loading of the provider is deferred. |
||
22 | * |
||
23 | * @var bool |
||
24 | */ |
||
25 | protected $defer = false; |
||
26 | |||
27 | /** |
||
28 | * Placeholder for base URL. |
||
29 | * |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $baseUrl; |
||
33 | |||
34 | /** |
||
35 | * Placeholder for secret key. |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $secretKey; |
||
40 | |||
41 | /** |
||
42 | * Placeholder for GuzzleHttp\Client. |
||
43 | * |
||
44 | * @var \GuzzleHttp\Cient |
||
45 | */ |
||
46 | protected $client; |
||
47 | |||
48 | /** |
||
49 | * Publishes all the config file this package needs to function |
||
50 | */ |
||
51 | public function boot() |
||
59 | |||
60 | /** |
||
61 | * Register the application services. |
||
62 | */ |
||
63 | public function register() |
||
73 | |||
74 | /** |
||
75 | * Get the services provided by the provider |
||
76 | * @return array |
||
77 | */ |
||
78 | public function provides() |
||
82 | |||
83 | /** |
||
84 | * Bootstraps configuration if configuration file exists. |
||
85 | * |
||
86 | * @return void |
||
87 | */ |
||
88 | protected function bootstrapConfig() |
||
93 | |||
94 | /** |
||
95 | * Called upon to set required meta dependencies. |
||
96 | */ |
||
97 | protected function setDependencies() |
||
103 | |||
104 | /** |
||
105 | * Set the base url from conig. |
||
106 | */ |
||
107 | protected function setBaseUrl() |
||
111 | |||
112 | /** |
||
113 | * Set the base url from conig. |
||
114 | */ |
||
115 | protected function setSecretToken() |
||
119 | |||
120 | /** |
||
121 | * Set guzzle client. |
||
122 | */ |
||
123 | protected function setClient() |
||
134 | } |
||
135 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.