Constructs a new user session.
Parameters
array $values:
Array of initial values for the user sesion.
File
- drupal/core/lib/Drupal/Core/Session/UserSession.php, line 74
- Contains \Drupal\Core\Session\UserSession.
Class
- UserSession
- An implementation of the user account interface for the global user.
Namespace
Drupal\Core\Session
Code
public function __construct(array $values = array()) {
foreach ($values as $key => $value) {
$this->{$key} = $value;
}
}