1 | <?php namespace Arcanedev\GeoIP; |
||
12 | class GeoIPServiceProvider extends PackageServiceProvider |
||
13 | { |
||
14 | /* ------------------------------------------------------------------------------------------------ |
||
15 | | Properties |
||
16 | | ------------------------------------------------------------------------------------------------ |
||
17 | */ |
||
18 | /** |
||
19 | * Package name. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $package = 'geoip'; |
||
24 | |||
25 | /** |
||
26 | * Indicates if loading of the provider is deferred. |
||
27 | * |
||
28 | * @var bool |
||
29 | */ |
||
30 | protected $defer = true; |
||
31 | |||
32 | /* ------------------------------------------------------------------------------------------------ |
||
33 | | Getters & Setters |
||
34 | | ------------------------------------------------------------------------------------------------ |
||
35 | */ |
||
36 | /** |
||
37 | * Get the base path of the package. |
||
38 | * |
||
39 | * @return string |
||
40 | */ |
||
41 | 132 | public function getBasePath() |
|
45 | |||
46 | /* ------------------------------------------------------------------------------------------------ |
||
47 | | Main Functions |
||
48 | | ------------------------------------------------------------------------------------------------ |
||
49 | */ |
||
50 | /** |
||
51 | * Register the service provider. |
||
52 | */ |
||
53 | 132 | public function register() |
|
68 | |||
69 | /** |
||
70 | * Boot the service provider. |
||
71 | */ |
||
72 | 132 | public function boot() |
|
78 | |||
79 | /** |
||
80 | * Get the services provided by the provider. |
||
81 | * |
||
82 | * @return array |
||
83 | */ |
||
84 | 12 | public function provides() |
|
98 | |||
99 | /* ------------------------------------------------------------------------------------------------ |
||
100 | | Other Functions |
||
101 | | ------------------------------------------------------------------------------------------------ |
||
102 | */ |
||
103 | /** |
||
104 | * Register the GeoIP manager. |
||
105 | */ |
||
106 | 132 | private function registerGeoIpManager() |
|
114 | |||
115 | /** |
||
116 | * Register the GeoIP Cache store. |
||
117 | */ |
||
118 | 132 | private function registerGeoIpCache() |
|
131 | |||
132 | /** |
||
133 | * Register the GeoIP. |
||
134 | */ |
||
135 | private function registerGeoIp() |
||
150 | } |
||
151 |