public function Request::getUser

Returns the user.

Return value

string|null

1 call to Request::getUser()
Request::getUserInfo in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php
Gets the user info.

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php, line 726

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function getUser() {
  return $this->server
    ->get('PHP_AUTH_USER');
}