public function IpGeoLocGlobal::__construct in IP Geolocation Views & Maps 8
Constructs a new IpGeoLocGlobal object. Adds dependency injection.
File
- src/
Services/ IpGeoLocGlobal.php, line 33
Class
- IpGeoLocGlobal
- Class IpGeoLocGlobal.
Namespace
Drupal\ip_geoloc\ServicesCode
public function __construct(LoggerChannelFactoryInterface $logger, IpGeoLocSession $ipGeolocSession, TranslationInterface $stringTranslation, MessengerInterface $messenger, ModuleHandler $moduleHandler, ConfigFactoryInterface $config_factory) {
$this->logger = $logger;
$this->ipGeolocSession = $ipGeolocSession;
$this->stringTranslation = $stringTranslation;
$this->messenger = $messenger;
$this->moduleHandler = $moduleHandler;
$this->config = $config_factory
->get('ip_geoloc.settings');
}