public function AccountSwitcher::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Session/AccountSwitcher.php \Drupal\Core\Session\AccountSwitcher::__construct()
Constructs a new AccountSwitcher.
Parameters
\Drupal\Core\Session\AccountProxyInterface $current_user: The current user service.
\Drupal\Core\Session\WriteSafeSessionHandlerInterface $write_safe_handler: The write-safe session handler.
File
- core/
lib/ Drupal/ Core/ Session/ AccountSwitcher.php, line 55 - Contains \Drupal\Core\Session\AccountSwitcher.
Class
- AccountSwitcher
- An implementation of AccountSwitcherInterface.
Namespace
Drupal\Core\SessionCode
public function __construct(AccountProxyInterface $current_user, WriteSafeSessionHandlerInterface $write_safe_handler) {
$this->currentUser = $current_user;
$this->writeSafeHandler = $write_safe_handler;
}