antonioribeiro / firewall

Firewall package for Laravel applications
BSD 3-Clause "New" or "Revised" License
1.39k stars 164 forks source link

'PragmaRX\Support\GeoIp\Updater' not found #109

Open winstonfale opened 6 years ago

winstonfale commented 6 years ago

Hi Im trying to update the geo ip using php artisan firewall:updategeoip its because base on my logs there are some IP's that are filtered even they are in the US (I only whitelist the country US) the rest is blocked Im using laravel 5.3 so pragmarx/firewall:1.* geoip2/geoip2(latest) pragmarx/support:0.6.16(as it has the last supported by firewall 1)

Im not using a database firewall i only use the config file to whitelist everything and on the config file i saw this may this is the solution of my prob /**

upon executing the update firewall it gives me

[Symfony\Component\Debug\Exception\FatalThrowableError] Class 'PragmaRX\Support\GeoIp\Updater' not found

what i am missing? sorry newbie

josecanhelp commented 6 years ago

It seems like pragmarx/firewall:1.* calls PragmaRX\Support\GeoIp\Updater, but that class isn't available until pragmarx/support:0.7.

josecanhelp commented 6 years ago

My temporary solution was to copy the PragmaRX\Support\GeoIp\Updater class from pragmarx/support:0.7 and use it to generate the GeoLite files. A longer term solution would be awesome though.