1 | <?php namespace Arcanedev\Currencies; |
||
11 | class CurrenciesServiceProvider extends PackageServiceProvider |
||
12 | { |
||
13 | /* ------------------------------------------------------------------------------------------------ |
||
14 | | Properties |
||
15 | | ------------------------------------------------------------------------------------------------ |
||
16 | */ |
||
17 | /** |
||
18 | * Vendor name. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $vendor = 'arcanedev'; |
||
23 | |||
24 | /** |
||
25 | * Package name. |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $package = 'currencies'; |
||
30 | |||
31 | /** |
||
32 | * Indicates if loading of the provider is deferred. |
||
33 | * |
||
34 | * @var bool |
||
35 | */ |
||
36 | protected $defer = true; |
||
37 | |||
38 | /* ------------------------------------------------------------------------------------------------ |
||
39 | | Getters & Setters |
||
40 | | ------------------------------------------------------------------------------------------------ |
||
41 | */ |
||
42 | /** |
||
43 | * Get the base path of the package. |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | 384 | public function getBasePath() |
|
51 | |||
52 | /* ------------------------------------------------------------------------------------------------ |
||
53 | | Main Functions |
||
54 | | ------------------------------------------------------------------------------------------------ |
||
55 | */ |
||
56 | /** |
||
57 | * Register the service provider. |
||
58 | */ |
||
59 | 384 | public function register() |
|
66 | |||
67 | /** |
||
68 | * Boot the service provider. |
||
69 | */ |
||
70 | 384 | public function boot() |
|
79 | |||
80 | /** |
||
81 | * Get the services provided by the provider. |
||
82 | * |
||
83 | * @return array |
||
84 | */ |
||
85 | 24 | public function provides() |
|
94 | |||
95 | /* ------------------------------------------------------------------------------------------------ |
||
96 | | Other Functions |
||
97 | | ------------------------------------------------------------------------------------------------ |
||
98 | */ |
||
99 | 384 | private function registerCurrencyManager() |
|
110 | |||
111 | private function registerCurrencyConverter() |
||
119 | |||
120 | 384 | private function loadCurrencies() |
|
129 | } |
||
130 |