You are here

public function Oauth::__construct in Media: Acquia DAM 8

Oauth constructor.

File

src/Oauth.php, line 82

Class

Oauth
OAuth Class.

Namespace

Drupal\media_acquiadam

Code

public function __construct(ConfigFactoryInterface $config_factory, CsrfTokenGenerator $csrfTokenGenerator, UrlGeneratorInterface $urlGenerator, ClientInterface $httpClient, LoggerChannelFactoryInterface $loggerChannelFactory, AccountProxyInterface $account) {
  $this->config = $config_factory
    ->get('media_acquiadam.settings');
  $this->csrfTokenGenerator = $csrfTokenGenerator;
  $this->urlGenerator = $urlGenerator;
  $this->httpClient = $httpClient;
  $this->loggerChannel = $loggerChannelFactory
    ->get('media_acquiadam');
  $this->currentUser = $account;
}