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