Total Complexity | 6 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 90% |
Changes | 4 | ||
Bugs | 2 | Features | 2 |
1 | <?php |
||
14 | class PaymentsServiceProvider extends AbstractSignatureServiceProvider implements BootableServiceProviderInterface |
||
15 | { |
||
16 | /** |
||
17 | * @inheritdoc |
||
18 | */ |
||
19 | public function register() |
||
24 | 1 | } |
|
25 | 1 | ||
26 | 1 | /** |
|
27 | * @inheritdoc |
||
28 | */ |
||
29 | public function provides() |
||
30 | 1 | { |
|
31 | 1 | return ['purchases', 'purchase-sessions', 'payments.gateways']; |
|
32 | 1 | } |
|
33 | 1 | ||
34 | public function boot() |
||
37 | 1 | } |
|
38 | |||
39 | 1 | protected function registerPurchases() |
|
40 | 1 | { |
|
41 | $this->getContainer()->share('purchases', function () { |
||
42 | return PaymentsModels::purchases(); |
||
43 | }); |
||
44 | 1 | } |
|
45 | |||
46 | 1 | protected function registerPurchaseSessions() |
|
50 | }); |
||
51 | } |
||
52 | 1 | ||
53 | protected function registerGatewaysManager() |
||
60 |