public function Ip2CountryLookup::__construct in IP-based Determination of a Visitor's Country 8
Constructs an Ip2CountryLookup object.
Parameters
\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack.
\Drupal\Core\Database\Connection $connection: The database connection.
File
- src/
Ip2CountryLookup.php, line 35
Class
- Ip2CountryLookup
- The ip2country.lookup service.
Namespace
Drupal\ip2countryCode
public function __construct(RequestStack $requestStack, Connection $connection) {
$this->currentRequest = $requestStack
->getCurrentRequest();
$this->connection = $connection;
}