Add a docblock

This commit is contained in:
Toby Zerner 2021-08-30 15:10:15 +10:00
parent ac23f7a70a
commit 7979ef5376
1 changed files with 3 additions and 0 deletions

View File

@ -260,6 +260,9 @@ final class JsonApi implements RequestHandlerInterface
return $this->basePath;
}
/**
* Strip the API's base path from the start of the given path.
*/
public function stripBasePath(string $path): string
{
$basePath = parse_url($this->basePath, PHP_URL_PATH);