You are here

public function Request::getUserInfo in Zircon Profile 8.0

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

Gets the user info.

Return value

string A user name and, optionally, scheme-specific information about how to gain authorization to access the server

File

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

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function getUserInfo() {
  $userinfo = $this
    ->getUser();
  $pass = $this
    ->getPassword();
  if ('' != $pass) {
    $userinfo .= ":{$pass}";
  }
  return $userinfo;
}