Add root path offset

This commit is contained in:
Dennis Eichhorn 2017-06-01 21:22:14 +02:00
parent f86d8d8622
commit 15914a10f0

View File

@ -263,6 +263,14 @@ class Http implements UriInterface
return $this->path;
}
/**
* {@inheritdoc}
*/
public function getPathOffset() : int
{
return substr_count($this->rootPath, '/') - 1;
}
/**
* {@inheritdoc}
*/