ip2country.services.yml in IP-based Determination of a Visitor's Country 8
File
ip2country.services.ymlView source
- services:
- ip2country.lookup:
- class: Drupal\ip2country\Ip2CountryLookup
- arguments: ['@request_stack', '@database']
- ip2country.manager:
- class: Drupal\ip2country\Ip2CountryManager
- arguments: ['@database', '@logger.factory', '@state', '@datetime.time']
-
- cache_context.ip.country:
- class: Drupal\ip2country\Cache\Context\Ip2CountryCacheContext
- arguments: ['@request_stack', '@ip2country.lookup']
- tags:
- - { name: cache.context }