You are here

public function Geocoder::__construct in Geocoder 8.2

Same name and namespace in other branches
  1. 8.3 src/Geocoder.php \Drupal\geocoder\Geocoder::__construct()

Constructs a geocoder factory class.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.

\Drupal\geocoder\ProviderPluginManager $provider_plugin_manager: The geocoder provider plugin manager service.

File

src/Geocoder.php, line 36

Class

Geocoder
Provides a geocoder factory class.

Namespace

Drupal\geocoder

Code

public function __construct(ConfigFactoryInterface $config_factory, ProviderPluginManager $provider_plugin_manager) {
  $this->config = $config_factory
    ->get('geocoder.settings');
  $this->providerPluginManager = $provider_plugin_manager;
}