You are here

public function IpGeoLocSubscriber::__construct in IP Geolocation Views & Maps 8

Constructor for fependency injection.

File

src/EventSubscriber/IpGeoLocSubscriber.php, line 30

Class

IpGeoLocSubscriber
Subscribe to KernelEvents::REQUEST events and redirect if site is currently in maintenance mode.

Namespace

Drupal\ip_geoloc\EventSubscriber

Code

public function __construct(CurrentPathStack $currentPath, IpGeoLocSession $ipGeolocSession, IpGeoLocGlobal $geolocGlobal, IpGeoLocAPI $api) {
  $this->currentPath = $currentPath;
  $this->ipGeolocSession = $ipGeolocSession;
  $this->geolocGlobal = $geolocGlobal;
  $this->api = $api;
}