function DefaultFetcher::__construct

Same name in other branches
  1. 8.9.x 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 65

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.