1 | <?php |
||
32 | class ServiceProvider extends PragmaRXServiceProvider |
||
33 | { |
||
34 | protected $packageVendor = 'pragmarx'; |
||
35 | |||
36 | protected $packageVendorCapitalized = 'PragmaRX'; |
||
37 | |||
38 | protected $packageName = 'firewall'; |
||
39 | |||
40 | protected $packageNameCapitalized = 'Firewall'; |
||
41 | |||
42 | private $firewall; |
||
43 | |||
44 | /** |
||
45 | * Get the full path of the stub config file. |
||
46 | * |
||
47 | * @throws ConfigurationOptionNotAvailable |
||
48 | * |
||
49 | * @return \Illuminate\Database\Eloquent\Model |
||
50 | */ |
||
51 | 64 | private function getFirewallModel() |
|
59 | |||
60 | /** |
||
61 | * Get the root directory for this ServiceProvider. |
||
62 | * |
||
63 | * @return string |
||
64 | */ |
||
65 | 76 | public function getRootDirectory() |
|
69 | |||
70 | /** |
||
71 | * Register the service provider. |
||
72 | * |
||
73 | * @return void |
||
74 | */ |
||
75 | 76 | public function register() |
|
121 | |||
122 | /** |
||
123 | * Register the attack blocker. |
||
124 | */ |
||
125 | 75 | private function registerAttackBlocker() |
|
131 | |||
132 | /** |
||
133 | * Register the countries repository. |
||
134 | */ |
||
135 | 75 | private function registerCountriesRepository() |
|
141 | |||
142 | /** |
||
143 | * Register the Blacklist Artisan command. |
||
144 | * |
||
145 | * @return void |
||
146 | */ |
||
147 | 24 | private function registerBlacklistCommand() |
|
155 | |||
156 | /** |
||
157 | * Register the Cache driver used by Firewall. |
||
158 | * |
||
159 | * @return void |
||
160 | */ |
||
161 | 75 | private function registerCache() |
|
167 | |||
168 | /** |
||
169 | * Register the List Artisan command. |
||
170 | * |
||
171 | * @return void |
||
172 | */ |
||
173 | 24 | private function registerClearCommand() |
|
181 | |||
182 | /** |
||
183 | * Register the cache:clear Artisan command. |
||
184 | * |
||
185 | * @return void |
||
186 | */ |
||
187 | private function registerFlushCommand() |
||
195 | |||
196 | /** |
||
197 | * Register the Data Repository driver used by Firewall. |
||
198 | * |
||
199 | * @return void |
||
200 | */ |
||
201 | 75 | private function registerDataRepository() |
|
207 | |||
208 | /** |
||
209 | * Register event listeners. |
||
210 | */ |
||
211 | 75 | private function registerEventListeners() |
|
215 | |||
216 | /** |
||
217 | * Register the Filesystem driver used by Firewall. |
||
218 | * |
||
219 | * @return void |
||
220 | */ |
||
221 | 75 | private function registerFileSystem() |
|
227 | |||
228 | /** |
||
229 | * Takes all the components of Firewall and glues them |
||
230 | * together to create Firewall. |
||
231 | * |
||
232 | * @return void |
||
233 | */ |
||
234 | 75 | private function registerFirewall() |
|
252 | |||
253 | 75 | private function registerIpAddress() |
|
259 | |||
260 | /** |
||
261 | * Register the ip list repository. |
||
262 | */ |
||
263 | 75 | private function registerIpList() |
|
269 | |||
270 | /** |
||
271 | * Register the message repository. |
||
272 | */ |
||
273 | 75 | private function registerMessageRepository() |
|
279 | |||
280 | /** |
||
281 | * Register blocking and unblocking Middleware. |
||
282 | * |
||
283 | * @return void |
||
284 | */ |
||
285 | 75 | private function registerMiddleware() |
|
295 | |||
296 | 24 | private function registerMigrations() |
|
300 | |||
301 | 75 | private function registerGeoIp() |
|
307 | |||
308 | /** |
||
309 | * Register the List Artisan command. |
||
310 | * |
||
311 | * @return void |
||
312 | */ |
||
313 | 24 | private function registerRemoveCommand() |
|
321 | |||
322 | /** |
||
323 | * Register the List Artisan command. |
||
324 | * |
||
325 | * @return void |
||
326 | */ |
||
327 | 75 | private function registerReportCommand() |
|
335 | |||
336 | /** |
||
337 | * Register the updategeoip command. |
||
338 | */ |
||
339 | 75 | private function registerUpdateGeoIpCommand() |
|
347 | |||
348 | /** |
||
349 | * Register the Whitelist Artisan command. |
||
350 | * |
||
351 | * @return void |
||
352 | */ |
||
353 | 24 | private function registerWhitelistCommand() |
|
361 | } |
||
362 |