| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | final class PaymentGatewayServiceProvider extends ServiceProvider implements DeferrableProvider |
||
| 11 | { |
||
| 12 | /** @inheritdoc */ |
||
| 13 | public function register(): void |
||
| 14 | { |
||
| 15 | $this->app->singleton(BePaidApiContext::class, function () { |
||
| 16 | |||
| 17 | return new BePaidApiContext([ |
||
| 18 | 'marketId' => config('services.bepaid.marketId'), |
||
| 19 | 'marketKey' => config('services.bepaid.marketKey'), |
||
| 20 | 'live' => config('services.bepaid.live'), |
||
| 21 | ]); |
||
| 22 | }); |
||
| 23 | |||
| 24 | $this->app->bind(BePaidPaymentGateway::class, BePaidPaymentGateway::class); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** @inheritdoc */ |
||
| 28 | public function provides(): array |
||
| 33 | ]; |
||
| 34 | } |
||
| 36 |