You are here

public function TwitterPostCollectorFactory::__construct in Social Feed 8

TwitterPostCollectorFactory constructor.

Parameters

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

File

src/Services/TwitterPostCollectorFactory.php, line 48

Class

TwitterPostCollectorFactory
Class TwitterPostCollectorFactory.

Namespace

Drupal\socialfeed\Services

Code

public function __construct(ConfigFactoryInterface $configFactory) {
  $config = $configFactory
    ->get('socialfeed.twittersettings');
  $this->defaultConsumerKey = $config
    ->get('consumer_key');
  $this->defaultConsumerSecret = $config
    ->get('consumer_secret');
  $this->defaultAccessToken = $config
    ->get('access_token');
  $this->defaultAccessTokenSecret = $config
    ->get('access_token_secret');
}