public function 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

1 call to Request::getUserInfo()
Request::getSchemeAndHttpHost in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php
Gets the scheme and HTTP host.

File

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

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;
}