mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-24 07:08:40 +00:00
Add root path offset
This commit is contained in:
parent
f86d8d8622
commit
15914a10f0
|
|
@ -263,6 +263,14 @@ class Http implements UriInterface
|
|||
return $this->path;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getPathOffset() : int
|
||||
{
|
||||
return substr_count($this->rootPath, '/') - 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user