You are here

public function HttpFetcher::__construct in Feeds 8.3

Constructs an UploadFetcher object.

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin id.

array $plugin_definition: The plugin definition.

\GuzzleHttp\ClientInterface $client: The Guzzle client.

\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend.

\Drupal\Core\File\FileSystemInterface $file_system: The Drupal file system helper.

Overrides PluginBase::__construct

File

src/Feeds/Fetcher/HttpFetcher.php, line 74

Class

HttpFetcher
Defines an HTTP fetcher.

Namespace

Drupal\feeds\Feeds\Fetcher

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, ClientInterface $client, CacheBackendInterface $cache, FileSystemInterface $file_system) {
  $this->client = $client;
  $this->cache = $cache;
  $this->fileSystem = $file_system;
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}