1 | <?php |
||
31 | class ServiceProvider extends PragmaRXServiceProvider |
||
32 | { |
||
33 | protected $packageVendor = 'pragmarx'; |
||
34 | |||
35 | protected $packageVendorCapitalized = 'PragmaRX'; |
||
36 | |||
37 | protected $packageName = 'firewall'; |
||
38 | |||
39 | protected $packageNameCapitalized = 'Firewall'; |
||
40 | |||
41 | private $firewall; |
||
42 | |||
43 | /** |
||
44 | * Get the full path of the stub config file. |
||
45 | * |
||
46 | * @throws ConfigurationOptionNotAvailable |
||
47 | * |
||
48 | * @return \Illuminate\Database\Eloquent\Model |
||
49 | */ |
||
50 | 58 | private function getFirewallModel() |
|
58 | |||
59 | /** |
||
60 | * Get the root directory for this ServiceProvider. |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | 72 | public function getRootDirectory() |
|
68 | |||
69 | /** |
||
70 | * Register the service provider. |
||
71 | * |
||
72 | * @return void |
||
73 | */ |
||
74 | 72 | public function register() |
|
119 | |||
120 | /** |
||
121 | * Register the attack blocker. |
||
122 | */ |
||
123 | private function registerAttackBlocker() |
||
129 | |||
130 | /** |
||
131 | * Register the countries repository. |
||
132 | */ |
||
133 | private function registerCountriesRepository() |
||
139 | |||
140 | /** |
||
141 | * Register the Blacklist Artisan command. |
||
142 | * |
||
143 | * @return void |
||
144 | */ |
||
145 | private function registerBlacklistCommand() |
||
153 | |||
154 | /** |
||
155 | * Register the Cache driver used by Firewall. |
||
156 | * |
||
157 | * @return void |
||
158 | */ |
||
159 | private function registerCache() |
||
165 | |||
166 | /** |
||
167 | * Register the List Artisan command. |
||
168 | * |
||
169 | * @return void |
||
170 | */ |
||
171 | private function registerClearCommand() |
||
179 | |||
180 | /** |
||
181 | * Register the Data Repository driver used by Firewall. |
||
182 | * |
||
183 | * @return void |
||
184 | */ |
||
185 | private function registerDataRepository() |
||
191 | |||
192 | /** |
||
193 | * Register event listeners. |
||
194 | */ |
||
195 | 71 | private function registerEventListeners() |
|
199 | |||
200 | /** |
||
201 | * Register the Filesystem driver used by Firewall. |
||
202 | * |
||
203 | * @return void |
||
204 | */ |
||
205 | private function registerFileSystem() |
||
211 | |||
212 | /** |
||
213 | * Takes all the components of Firewall and glues them |
||
214 | * together to create Firewall. |
||
215 | * |
||
216 | * @return void |
||
217 | */ |
||
218 | private function registerFirewall() |
||
236 | |||
237 | private function registerIpAddress() |
||
243 | |||
244 | /** |
||
245 | * Register the ip list repository. |
||
246 | */ |
||
247 | private function registerIpList() |
||
253 | |||
254 | /** |
||
255 | * Register the message repository. |
||
256 | */ |
||
257 | private function registerMessageRepository() |
||
263 | |||
264 | /** |
||
265 | * Register blocking and unblocking Middleware. |
||
266 | * |
||
267 | * @return void |
||
268 | */ |
||
269 | private function registerMiddleware() |
||
279 | |||
280 | 71 | private function registerMigrations() |
|
284 | |||
285 | private function registerGeoIp() |
||
291 | |||
292 | /** |
||
293 | * Register the List Artisan command. |
||
294 | * |
||
295 | * @return void |
||
296 | */ |
||
297 | private function registerRemoveCommand() |
||
305 | |||
306 | /** |
||
307 | * Register the List Artisan command. |
||
308 | * |
||
309 | * @return void |
||
310 | */ |
||
311 | private function registerReportCommand() |
||
319 | |||
320 | /** |
||
321 | * Register the updategeoip command. |
||
322 | */ |
||
323 | private function registerUpdateGeoIpCommand() |
||
331 | |||
332 | /** |
||
333 | * Register the Whitelist Artisan command. |
||
334 | * |
||
335 | * @return void |
||
336 | */ |
||
337 | private function registerWhitelistCommand() |
||
345 | } |
||
346 |
Overwriting private methods is generally fine as long as you also use private visibility. It might still be preferable for understandability to use a different method name.