You are here

public static function ProviderUsingHandlerWithAdapterBase::create in Geocoder 8.2

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

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

Overrides ProviderBase::create

File

src/ProviderUsingHandlerWithAdapterBase.php, line 50

Class

ProviderUsingHandlerWithAdapterBase
Provides a base class for providers using handlers with HTTP adapter.

Namespace

Drupal\geocoder

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('config.factory'), $container
    ->get('cache.geocoder'), $container
    ->get('geocoder.http_adapter'));
}