| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function register() |
||
| 40 | { |
||
| 41 | $this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'paddle'); |
||
| 42 | |||
| 43 | $this->app->singleton('laravel-paddle', function () { |
||
| 44 | return new Api; |
||
| 45 | }); |
||
| 46 | |||
| 47 | $this->app->singleton('laravel-paddle.http', function () { |
||
| 48 | return new PendingZttpRequest; |
||
| 49 | }); |
||
| 50 | |||
| 51 | Route::post(config('paddle.webhook_uri'), WebhookController::class); |
||
| 52 | } |
||
| 53 | } |
||
| 54 |