$this->basePath =
rtrim($basePath, '/'
).'/';
} } public function getUrl(string
$path): string
{ $versionedPath = parent::
getUrl($path);
// if absolute or begins with /, we're done
if ($this->
isAbsoluteUrl($versionedPath) || ($versionedPath && '/' ===
$versionedPath[0
])) { return $versionedPath;
} return $this->
getBasePath().
ltrim($versionedPath, '/'
);
} /**
* Returns the base path.
*/
public function getBasePath(): string
{