You are here

public function Ip2CountryCommands::__construct in IP-based Determination of a Visitor's Country 8

Ip2CountryCommands constructor.

Parameters

\Drupal\Core\State\StateInterface $stateService: The state service.

\Drupal\Core\Datetime\DateFormatterInterface $dateFormatter: The date formatter service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

\Drupal\Core\Locale\CountryManagerInterface $countryManager: The core country_manager service.

\Drupal\ip2country\Ip2CountryLookup $ip2country_lookup: The ip2country lookup service.

\Drupal\ip2country\Ip2CountryManager $ip2country_manager: The ip2country database manager.

File

src/Commands/Ip2CountryCommands.php, line 77

Class

Ip2CountryCommands
Drush 9+ commands for the IP2Country module.

Namespace

Drupal\ip2country\Commands

Code

public function __construct(StateInterface $stateService, DateFormatterInterface $dateFormatter, ConfigFactoryInterface $config_factory, CountryManagerInterface $countryManager, Ip2CountryLookup $ip2country_lookup, Ip2CountryManager $ip2country_manager) {
  parent::__construct();
  $this->stateService = $stateService;
  $this->dateFormatter = $dateFormatter;
  $this->configFactory = $config_factory;
  $this->countryManager = $countryManager;
  $this->ip2countryLookup = $ip2country_lookup;
  $this->ip2countryManager = $ip2country_manager;
}