You are here

public function DefaultFetcher::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/aggregator/src/Plugin/aggregator/fetcher/DefaultFetcher.php \Drupal\aggregator\Plugin\aggregator\fetcher\DefaultFetcher::__construct()

Constructs a DefaultFetcher object.

Parameters

\Drupal\Core\Http\ClientFactory $http_client_factory: A Guzzle client object.

\Psr\Log\LoggerInterface $logger: A logger instance.

File

core/modules/aggregator/src/Plugin/aggregator/fetcher/DefaultFetcher.php, line 58
Contains \Drupal\aggregator\Plugin\aggregator\fetcher\DefaultFetcher.

Class

DefaultFetcher
Defines a default fetcher implementation.

Namespace

Drupal\aggregator\Plugin\aggregator\fetcher

Code

public function __construct(ClientFactory $http_client_factory, LoggerInterface $logger) {
  $this->httpClientFactory = $http_client_factory;
  $this->logger = $logger;
}