You are here

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

Constructs a \Drupal\ip_geoloc\Form\GeoCodeAddressForm object. Adds the dependency injection.

File

src/Form/GeoCodeAddressForm.php, line 35

Class

GeoCodeAddressForm
Form to reverse geocode a address to latitud and Longitude.

Namespace

Drupal\ip_geoloc\Form

Code

public function __construct(ConfigFactoryInterface $configFactory, MessengerInterface $messenger, ModuleHandler $moduleHandler, IpGeoLocSession $ipGeolocSession, IpGeoLocAPI $api, Geocoder $geocoder) {
  $this->configFactory = $configFactory;
  $this->messenger = $messenger;
  $this->moduleHandler = $moduleHandler;
  $this->ipGeolocSession = $ipGeolocSession;
  $this->api = $api;
  $this->geocoder = $geocoder;
}