@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | */ |
| 135 | 135 | private function registerAttackBlocker() |
| 136 | 136 | { |
| 137 | - $this->app->singleton('firewall.attackBlocker', function ($app) { |
|
| 137 | + $this->app->singleton('firewall.attackBlocker', function($app) { |
|
| 138 | 138 | return new AttackBlocker( |
| 139 | 139 | $app['firewall.config'], |
| 140 | 140 | $app['firewall.cache'] |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | */ |
| 150 | 150 | private function registerBlacklistCommand() |
| 151 | 151 | { |
| 152 | - $this->app->singleton('firewall.blacklist.command', function ($app) { |
|
| 152 | + $this->app->singleton('firewall.blacklist.command', function($app) { |
|
| 153 | 153 | return new BlacklistCommand(); |
| 154 | 154 | }); |
| 155 | 155 | |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | */ |
| 164 | 164 | private function registerCache() |
| 165 | 165 | { |
| 166 | - $this->app->singleton('firewall.cache', function ($app) { |
|
| 166 | + $this->app->singleton('firewall.cache', function($app) { |
|
| 167 | 167 | return new Cache($app['firewall.config'], app('cache')); |
| 168 | 168 | }); |
| 169 | 169 | } |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | */ |
| 176 | 176 | private function registerClearCommand() |
| 177 | 177 | { |
| 178 | - $this->app->singleton('firewall.clear.command', function ($app) { |
|
| 178 | + $this->app->singleton('firewall.clear.command', function($app) { |
|
| 179 | 179 | return new ClearCommand(); |
| 180 | 180 | }); |
| 181 | 181 | |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | */ |
| 190 | 190 | private function registerDataRepository() |
| 191 | 191 | { |
| 192 | - $this->app->singleton('firewall.dataRepository', function ($app) { |
|
| 192 | + $this->app->singleton('firewall.dataRepository', function($app) { |
|
| 193 | 193 | return new DataRepository( |
| 194 | 194 | $this->getFirewallModel(), |
| 195 | 195 | |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | */ |
| 222 | 222 | private function registerFileSystem() |
| 223 | 223 | { |
| 224 | - $this->app->singleton('firewall.fileSystem', function ($app) { |
|
| 224 | + $this->app->singleton('firewall.fileSystem', function($app) { |
|
| 225 | 225 | return new Filesystem(); |
| 226 | 226 | }); |
| 227 | 227 | } |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | */ |
| 235 | 235 | private function registerFirewall() |
| 236 | 236 | { |
| 237 | - $this->app->singleton('firewall', function ($app) { |
|
| 237 | + $this->app->singleton('firewall', function($app) { |
|
| 238 | 238 | $app['firewall.loaded'] = true; |
| 239 | 239 | |
| 240 | 240 | $this->firewall = new Firewall( |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | */ |
| 257 | 257 | private function registerMessageRepository() |
| 258 | 258 | { |
| 259 | - $this->app->singleton('firewall.message', function ($app) { |
|
| 259 | + $this->app->singleton('firewall.message', function($app) { |
|
| 260 | 260 | return new Message(); |
| 261 | 261 | }); |
| 262 | 262 | } |
@@ -268,11 +268,11 @@ discard block |
||
| 268 | 268 | */ |
| 269 | 269 | private function registerMiddleware() |
| 270 | 270 | { |
| 271 | - $this->app->singleton('firewall.middleware.blacklist', function ($app) { |
|
| 271 | + $this->app->singleton('firewall.middleware.blacklist', function($app) { |
|
| 272 | 272 | return new FirewallBlacklist(new Blacklist()); |
| 273 | 273 | }); |
| 274 | 274 | |
| 275 | - $this->app->singleton('firewall.middleware.whitelist', function ($app) { |
|
| 275 | + $this->app->singleton('firewall.middleware.whitelist', function($app) { |
|
| 276 | 276 | return new FirewallWhitelist(new Whitelist()); |
| 277 | 277 | }); |
| 278 | 278 | } |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | |
| 285 | 285 | private function registerGeoIp() |
| 286 | 286 | { |
| 287 | - $this->app->singleton('firewall.geoip', function () { |
|
| 287 | + $this->app->singleton('firewall.geoip', function() { |
|
| 288 | 288 | return new GeoIp($this->getConfig('geoip_database_path')); |
| 289 | 289 | }); |
| 290 | 290 | } |
@@ -296,7 +296,7 @@ discard block |
||
| 296 | 296 | */ |
| 297 | 297 | private function registerRemoveCommand() |
| 298 | 298 | { |
| 299 | - $this->app->singleton('firewall.remove.command', function ($app) { |
|
| 299 | + $this->app->singleton('firewall.remove.command', function($app) { |
|
| 300 | 300 | return new RemoveCommand(); |
| 301 | 301 | }); |
| 302 | 302 | |
@@ -310,7 +310,7 @@ discard block |
||
| 310 | 310 | */ |
| 311 | 311 | private function registerReportCommand() |
| 312 | 312 | { |
| 313 | - $this->app->singleton('firewall.list.command', function ($app) { |
|
| 313 | + $this->app->singleton('firewall.list.command', function($app) { |
|
| 314 | 314 | return new ReportCommand(); |
| 315 | 315 | }); |
| 316 | 316 | |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | */ |
| 323 | 323 | private function registerUpdateGeoIpCommand() |
| 324 | 324 | { |
| 325 | - $this->app->singleton('firewall.updategeoip.command', function ($app) { |
|
| 325 | + $this->app->singleton('firewall.updategeoip.command', function($app) { |
|
| 326 | 326 | return new UpdateGeoIpCommand(); |
| 327 | 327 | }); |
| 328 | 328 | |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | */ |
| 337 | 337 | private function registerWhitelistCommand() |
| 338 | 338 | { |
| 339 | - $this->app->singleton('firewall.whitelist.command', function ($app) { |
|
| 339 | + $this->app->singleton('firewall.whitelist.command', function($app) { |
|
| 340 | 340 | return new WhitelistCommand(); |
| 341 | 341 | }); |
| 342 | 342 | |