| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class PaystackWebhooksServiceProvider extends ServiceProvider |
||
| 9 | { |
||
| 10 | public function boot() |
||
| 11 | { |
||
| 12 | $this->registerPublishables(); |
||
| 13 | |||
| 14 | $this->registerRoutes(); |
||
| 15 | } |
||
| 16 | |||
| 17 | public function register() |
||
| 18 | { |
||
| 19 | $this->mergeConfigFrom(__DIR__.'/../config/paystackwebhooks.php', 'paystackwebhooks'); |
||
| 20 | } |
||
| 21 | |||
| 22 | protected function registerPublishables(): void |
||
| 23 | { |
||
| 24 | $this->publishes([ |
||
| 25 | __DIR__.'/../config/paystackwebhooks.php' => config_path('paystackwebhooks.php'), |
||
| 26 | ], 'config'); |
||
| 27 | } |
||
| 28 | |||
| 29 | protected function registerRoutes() |
||
| 38 | }); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |