1 | <?php namespace Arcanedev\GeoIP; |
||
12 | class GeoIPServiceProvider extends PackageServiceProvider |
||
13 | { |
||
14 | /* ----------------------------------------------------------------- |
||
15 | | Properties |
||
16 | | ----------------------------------------------------------------- |
||
17 | */ |
||
18 | |||
19 | /** |
||
20 | * Package name. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $package = 'geoip'; |
||
25 | |||
26 | /** |
||
27 | * Indicates if loading of the provider is deferred. |
||
28 | * |
||
29 | * @var bool |
||
30 | */ |
||
31 | protected $defer = true; |
||
32 | |||
33 | /* ----------------------------------------------------------------- |
||
34 | | Main Methods |
||
35 | | ----------------------------------------------------------------- |
||
36 | */ |
||
37 | |||
38 | /** |
||
39 | * Register the service provider. |
||
40 | */ |
||
41 | 66 | public function register() |
|
53 | |||
54 | /** |
||
55 | * Boot the service provider. |
||
56 | */ |
||
57 | 66 | public function boot() |
|
63 | |||
64 | /** |
||
65 | * Get the services provided by the provider. |
||
66 | * |
||
67 | * @return array |
||
68 | */ |
||
69 | 6 | public function provides() |
|
79 | |||
80 | /* ----------------------------------------------------------------- |
||
81 | | Other Methods |
||
82 | | ----------------------------------------------------------------- |
||
83 | */ |
||
84 | |||
85 | /** |
||
86 | * Register the GeoIP manager. |
||
87 | */ |
||
88 | private function registerGeoIpManager() |
||
101 | |||
102 | /** |
||
103 | * Register the GeoIP Cache store. |
||
104 | */ |
||
105 | private function registerGeoIpCache() |
||
118 | |||
119 | /** |
||
120 | * Register the GeoIP. |
||
121 | */ |
||
122 | private function registerGeoIp() |
||
135 | } |
||
136 |