You are here

public function AccessTokenRefresh::__construct in Simple OAuth (OAuth2) & OpenID Connect 8

Constructs a CommentController object.

Parameters

AccountInterface $current_user: The current user.

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service.

File

src/Controller/AccessTokenRefresh.php, line 31

Class

AccessTokenRefresh

Namespace

Drupal\simple_oauth\Controller

Code

public function __construct(AccountInterface $current_user, EntityManagerInterface $entity_manager, JsonResponse $response) {
  $this->currentUser = $current_user;
  $this->entityManager = $entity_manager;
  $this->response = $response;
}