You are here

public function Request::getUser in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Request.php \Symfony\Component\HttpFoundation\Request::getUser()

Returns the user.

Return value

string|null

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

File

vendor/symfony/http-foundation/Request.php, line 989

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

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