You are here

public function FacebookFetcher::__construct in Media entity facebook 3.x

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

Constructor for FacebookFetcher.

Parameters

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

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

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Cache\CacheBackendInterface $cache: The cache service.

File

src/FacebookFetcher.php, line 74

Class

FacebookFetcher
Class FacebookFetcher.

Namespace

Drupal\media_entity_facebook

Code

public function __construct(LoggerChannelFactoryInterface $logger_channel_factory, ClientInterface $client, LanguageManagerInterface $language_manager, ConfigFactoryInterface $configFactory, CacheBackendInterface $cache) {
  $this->loggerChannel = $logger_channel_factory
    ->get('media_entity_facebook');
  $this->httpClient = $client;
  $this->languageManager = $language_manager;
  $this->config = $configFactory
    ->get('media_entity_facebook.settings');
  $this->cache = $cache;
}