Maxmind-GeoIp icon indicating copy to clipboard operation
Maxmind-GeoIp copied to clipboard

Make the `.dat` file location configurable

Open greg0ire opened this issue 9 years ago • 5 comments

When using the bundle, it would be nice to be able to configure the directory where the data file should be stored, especially, when you need to share the database between production releases but not the vendor.

greg0ire avatar Apr 07 '15 13:04 greg0ire

Hi @greg0ire

I faced the same situation. It does not make sense put data file inside vendor folder. You should take a look on this forke https://github.com/IDCI-Consulting/Maxmind-GeoIp which provides this option.

maxmind_geoip:
    data_file_path: "%kernel.root_dir%/../web/GeoIPCity.dat"

Hope this can be useful for you.

Cheers

marcoshoya avatar Apr 13 '15 15:04 marcoshoya

Thanks! Why not make a P. R.?

greg0ire avatar Apr 14 '15 00:04 greg0ire

ping @marcoshoya

greg0ire avatar Apr 29 '15 14:04 greg0ire

Hi @greg0ire

I did not make a P.R. because this feature is already available on https://github.com/IDCI-Consulting/Maxmind-GeoIp

The forke looks more up-to-date than this one.

marcoshoya avatar Apr 29 '15 15:04 marcoshoya

Oh ok I though you were the author of that, sorry. @idciconsulting : could you make a PR ?

greg0ire avatar Apr 29 '15 15:04 greg0ire