mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-09 05:38: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;
|
return $this->path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getPathOffset() : int
|
||||||
|
{
|
||||||
|
return substr_count($this->rootPath, '/') - 1;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user