Returns the root path from which this request is executed.
Suppose that an index.php file instantiates this request object:
@api
string The raw path (i.e. not urldecoded)
public function getBasePath() {
if (null === $this->basePath) {
$this->basePath = $this
->prepareBasePath();
}
return $this->basePath;
}