You are here

public function Account::__construct in Service Container 7.2

Same name and namespace in other branches
  1. 7 src/Session/Account.php \Drupal\service_container\Session\Account::__construct()

Constructs a new Account instance.

Parameters

\Drupal\service_container\Legacy\Drupal7 $drupal7: The Drupal7 service.

\Drupal\service_container\Variable $variable: The variable storage.

File

src/Session/Account.php, line 43
Contains \Drupal\service_container\Session\Account.

Class

Account
Wraps the global user to provide the account interface.

Namespace

Drupal\service_container\Session

Code

public function __construct(Drupal7 $drupal7, Variable $variable) {
  $this->drupal7 = $drupal7;
  $this->variable = $variable;
}