You are here

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

Constructs an Ip2CountryController.

Parameters

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger: The logger factory service.

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

\Drupal\ip2country\Ip2CountryLookupInterface $ip2countryLookup: The ip2country.lookup service.

\Drupal\ip2country\Ip2CountryManagerInterface $ip2countryManager: The ip2country.manager service.

File

src/Controller/Ip2CountryController.php, line 58

Class

Ip2CountryController
Controller routines for user routes.

Namespace

Drupal\ip2country\Controller

Code

public function __construct(LoggerChannelFactoryInterface $logger, CountryManagerInterface $countryManager, Ip2CountryLookupInterface $ip2countryLookup, Ip2CountryManagerInterface $ip2countryManager) {
  $this->logger = $logger;
  $this->countryManager = $countryManager;
  $this->ip2countryLookup = $ip2countryLookup;
  $this->ip2countryManager = $ip2countryManager;
}