public function Ip2CountryManager::__construct in IP-based Determination of a Visitor's Country 8
Constructs an Ip2CountryManager object.
Parameters
\Drupal\Core\Database\Connection $connection: The database connection.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger.factory service.
\Drupal\Core\State\StateInterface $state_service: The state service.
\Drupal\Component\Datetime\TimeInterface $time_service: The datetime.time service.
File
- src/
Ip2CountryManager.php, line 56
Class
- Ip2CountryManager
- The ip2country.manager service.
Namespace
Drupal\ip2countryCode
public function __construct(Connection $connection, LoggerChannelFactoryInterface $logger_factory, StateInterface $state_service, TimeInterface $time_service) {
$this->connection = $connection;
$this->loggerFactory = $logger_factory;
$this->stateService = $state_service;
$this->timeService = $time_service;
}