public function FacebookFetcher::__construct in Media entity facebook 8
Same name and namespace in other branches
- 8.2 src/FacebookFetcher.php \Drupal\media_entity_facebook\FacebookFetcher::__construct()
- 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_facebookCode
public function __construct(LoggerChannelFactoryInterface $logger_channel_factory, ClientInterface $client) {
$this->loggerChannel = $logger_channel_factory
->get('media_entity_facebook');
$this->httpClient = $client;
}