Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class MoneyServiceProvider extends AbstractSignatureServiceProvider |
||
20 | { |
||
21 | /** |
||
22 | * @inheritDoc |
||
23 | */ |
||
24 | public function provides() |
||
30 | ]; |
||
31 | } |
||
32 | |||
33 | public function register() |
||
34 | { |
||
35 | $this->registerCurrencies(); |
||
36 | $this->registerCurrency(); |
||
37 | } |
||
38 | |||
39 | protected function registerCurrencies() |
||
40 | { |
||
41 | $this->getContainer()->share('money.currencies', function () { |
||
42 | return new ISOCurrencies(); |
||
43 | }); |
||
44 | } |
||
45 | |||
46 | protected function registerCurrency() |
||
49 | }); |
||
50 | } |
||
51 | } |
||
52 |