You are here

ip2country.services.yml in IP-based Determination of a Visitor's Country 8

File

ip2country.services.yml
View source
  1. services:
  2. ip2country.lookup:
  3. class: Drupal\ip2country\Ip2CountryLookup
  4. arguments: ['@request_stack', '@database']
  5. ip2country.manager:
  6. class: Drupal\ip2country\Ip2CountryManager
  7. arguments: ['@database', '@logger.factory', '@state', '@datetime.time']
  8. cache_context.ip.country:
  9. class: Drupal\ip2country\Cache\Context\Ip2CountryCacheContext
  10. arguments: ['@request_stack', '@ip2country.lookup']
  11. tags:
  12. - { name: cache.context }