You are here

public function SalesforceOAuthController::__construct in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 5.0.x modules/salesforce_oauth/src/Controller/SalesforceOAuthController.php \Drupal\salesforce_oauth\Controller\SalesforceOAuthController::__construct()

File

modules/salesforce_oauth/src/Controller/SalesforceOAuthController.php, line 45

Class

SalesforceOAuthController
SalesforceOAuthController.

Namespace

Drupal\salesforce_oauth\Controller

Code

public function __construct(RequestStack $stack, MessengerInterface $messenger, PrivateTempStoreFactory $tempStoreFactory) {
  $this->request = $stack
    ->getCurrentRequest();
  $this->messenger = $messenger;
  $this->tempStore = $tempStoreFactory
    ->get('salesforce_oauth');
}