You are here

public function DefaultFetcher::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 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.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

File

core/modules/aggregator/src/Plugin/aggregator/fetcher/DefaultFetcher.php, line 63

Class

DefaultFetcher
Defines a default fetcher implementation.

Namespace

Drupal\aggregator\Plugin\aggregator\fetcher

Code

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