public function GeocoderApiEnpoints::__construct in Geocoder 8.3
Same name and namespace in other branches
- 8.2 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\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager service.
\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 207
Class
- GeocoderApiEnpoints
- Class GeocoderApiEnpoints.
Namespace
Drupal\geocoder\ControllerCode
public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, Geocoder $geocoder, DumperPluginManager $dumper_plugin_manager, FormatterPluginManager $geocoder_formatter_plugin_manager) {
$this->config = $config_factory
->get('geocoder.settings');
$this->entityTypeManager = $entity_type_manager;
$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);
}