You are here

public function Request::getBasePath in Zircon Profile 8

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

Returns the root path from which this request is executed.

Suppose that an index.php file instantiates this request object:

Return value

string The raw path (i.e. not urldecoded)

File

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

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function getBasePath() {
  if (null === $this->basePath) {
    $this->basePath = $this
      ->prepareBasePath();
  }
  return $this->basePath;
}