mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-18 04:48:39 +00:00
Added path offset calculation
This commit is contained in:
parent
ae43d838c7
commit
f4a8cf7613
|
|
@ -262,6 +262,11 @@ class Http implements UriInterface
|
|||
{
|
||||
return $this->path;
|
||||
}
|
||||
|
||||
public function getPathOffset() : int
|
||||
{
|
||||
return substr_count($this->rootPath, '/') - 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user