You are here

public function Request::getUriForPath in Zircon Profile 8.0

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

Generates a normalized URI for the given path.

Parameters

string $path A path to use instead of the current one:

Return value

string The normalized URI for the path

File

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

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function getUriForPath($path) {
  return $this
    ->getSchemeAndHttpHost() . $this
    ->getBaseUrl() . $path;
}