1 | <?php namespace Arcanedev\LaravelTracker; |
||
12 | class LaravelTrackerServiceProvider extends PackageServiceProvider |
||
13 | { |
||
14 | /* ------------------------------------------------------------------------------------------------ |
||
15 | | Properties |
||
16 | | ------------------------------------------------------------------------------------------------ |
||
17 | */ |
||
18 | /** |
||
19 | * Package name. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $package = 'laravel-tracker'; |
||
24 | |||
25 | /* ------------------------------------------------------------------------------------------------ |
||
26 | | Getters & Setters |
||
27 | | ------------------------------------------------------------------------------------------------ |
||
28 | */ |
||
29 | /** |
||
30 | * Get the base path of the package. |
||
31 | * |
||
32 | * @return string |
||
33 | */ |
||
34 | 180 | public function getBasePath() |
|
38 | |||
39 | /* ------------------------------------------------------------------------------------------------ |
||
40 | | Main Functions |
||
41 | | ------------------------------------------------------------------------------------------------ |
||
42 | */ |
||
43 | /** |
||
44 | * Register the service provider. |
||
45 | */ |
||
46 | 180 | public function register() |
|
60 | |||
61 | /** |
||
62 | * Boot the service provider. |
||
63 | */ |
||
64 | 180 | public function boot() |
|
71 | |||
72 | /** |
||
73 | * Get the services provided by the provider. |
||
74 | * |
||
75 | * @return array |
||
76 | */ |
||
77 | 6 | public function provides() |
|
84 | |||
85 | /* ------------------------------------------------------------------------------------------------ |
||
86 | | Other Functions |
||
87 | | ------------------------------------------------------------------------------------------------ |
||
88 | */ |
||
89 | /** |
||
90 | * Register the detectors. |
||
91 | */ |
||
92 | 180 | private function registerDetectors() |
|
118 | |||
119 | /** |
||
120 | * Register the parsers. |
||
121 | */ |
||
122 | 180 | private function registerParsers() |
|
137 | |||
138 | /** |
||
139 | * Register the trackers. |
||
140 | */ |
||
141 | 180 | private function registerTrackers() |
|
150 | |||
151 | /** |
||
152 | * Register the main tracker. |
||
153 | */ |
||
154 | 180 | private function registerMainTracker() |
|
159 | |||
160 | /** |
||
161 | * Get the trackers. |
||
162 | * |
||
163 | * @return array |
||
164 | */ |
||
165 | 180 | private function getTrackers() |
|
184 | } |
||
185 |