You are here

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

AcquiadamController constructor.

File

src/Controller/OauthController.php, line 72

Class

OauthController
Controller routines for acquiadam routes.

Namespace

Drupal\media_acquiadam\Controller

Code

public function __construct(OauthInterface $oauth, RequestStack $request_stack, UserDataInterface $user_data, AccountProxyInterface $currentUser, DateFormatterInterface $dateFormatter, UrlGeneratorInterface $urlGenerator) {
  $this->oauth = $oauth;
  $this->request = $request_stack
    ->getCurrentRequest();
  $this->userData = $user_data;
  $this->currentUser = $currentUser;
  $this->dateFormatter = $dateFormatter;
  $this->urlGenerator = $urlGenerator;
}