You are here

public static function ProviderUsingHandlerWithAdapterBase::create in Geocoder 8.3

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

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

Overrides ProviderBase::create

1 method overrides ProviderUsingHandlerWithAdapterBase::create()
ConfigurableProviderUsingHandlerWithAdapterBase::create in src/ConfigurableProviderUsingHandlerWithAdapterBase.php
Creates an instance of the plugin.

File

src/ProviderUsingHandlerWithAdapterBase.php, line 53

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('language_manager'), $container
    ->get('geocoder.http_adapter'));
}