You are here

public function UserSwitchController::__construct in User Switch 8

Constructs a new UserSwitchController object.

File

src/Controller/UserSwitchController.php, line 30

Class

UserSwitchController
Provides route responses for the Example module.

Namespace

Drupal\userswitch\Controller

Code

public function __construct(AccountInterface $currentUser, UserSwitch $userSwitch, Connection $database, MessengerInterface $messenger) {
  $this->currentUser = $currentUser;
  $this->userswitch = $userSwitch;
  $this->database = $database;
  $this->messenger = $messenger;
}