You are here

public function FacebookFetcher::__construct in Media entity facebook 8

Same name and namespace in other branches
  1. 8.2 src/FacebookFetcher.php \Drupal\media_entity_facebook\FacebookFetcher::__construct()
  2. 3.x src/FacebookFetcher.php \Drupal\media_entity_facebook\FacebookFetcher::__construct()

FacebookFetcher constructor.

Parameters

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_channel_factory: The logger factory.

\GuzzleHttp\ClientInterface $client: The Guzzle HTTP client.

File

src/FacebookFetcher.php, line 43

Class

FacebookFetcher
Class FacebookFetcher.

Namespace

Drupal\media_entity_facebook

Code

public function __construct(LoggerChannelFactoryInterface $logger_channel_factory, ClientInterface $client) {
  $this->loggerChannel = $logger_channel_factory
    ->get('media_entity_facebook');
  $this->httpClient = $client;
}