You are here

public function GeocoderApiEnpoints::__construct in Geocoder 8.2

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

Constructs a new GeofieldMapGeocoder object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\geocoder\Geocoder $geocoder: The Geocoder service.

\Drupal\geocoder\DumperPluginManager $dumper_plugin_manager: The dumper plugin manager service.

\Drupal\geocoder\FormatterPluginManager $geocoder_formatter_plugin_manager: The geocoder formatter plugin manager service.

File

src/Controller/GeocoderApiEnpoints.php, line 197

Class

GeocoderApiEnpoints
Class GeocoderApiEnpoints.

Namespace

Drupal\geocoder\Controller

Code

public function __construct(ConfigFactoryInterface $config_factory, Geocoder $geocoder, DumperPluginManager $dumper_plugin_manager, FormatterPluginManager $geocoder_formatter_plugin_manager) {
  $this->config = $config_factory
    ->get('geocoder.settings');
  $this->geocoder = $geocoder;
  $this->dumperPluginManager = $dumper_plugin_manager;
  $this->geocoderFormatterPluginManager = $geocoder_formatter_plugin_manager;

  // Define a default empty Response as 204 No Content.
  $this->response = new Response('', 204);
}