gpslab / geoip2

A Symfony Bundle for the Maxmind GeoIP2 API
https://www.maxmind.com/
MIT License
54 stars 12 forks source link

Unrecognized option "path" under "gpslab_geoip" #77

Open Mecanik opened 3 years ago

Mecanik commented 3 years ago

I've just started to configure your package, and it seems you cannot configure the path as per the documentation:

In ArrayNode.php line 314:
  Unrecognized option "path" under "gpslab_geoip". Available options are "databases", "default_database", "license", "locales".

Please update the documentation to inform people where to put the path key:

gpslab_geoip:
    path: '%kernel.project_dir%/var/GeoLite2-City.mmdb'

To:

databases:
   city:
       edition: 'GeoLite2-City'
       path: '%kernel.project_dir%/var/GeoLite2-City.mmdb'

Thanks

peter-gribanov commented 3 years ago

You cannot register the database without specifying the edition and license.

gpslab_geoip:
    license: 'XXXXXXXXXXXXXXXX'
    edition: 'GeoLite2-City'
    path: '%kernel.project_dir%/var/GeoLite2-City.mmdb'