diff --git a/Uri/Http.php b/Uri/Http.php index b6362eb4e..b8755bb94 100644 --- a/Uri/Http.php +++ b/Uri/Http.php @@ -263,6 +263,14 @@ class Http implements UriInterface return $this->path; } + /** + * {@inheritdoc} + */ + public function getPathOffset() : int + { + return substr_count($this->rootPath, '/') - 1; + } + /** * {@inheritdoc} */