Added path offset calculation

This commit is contained in:
Dennis Eichhorn 2017-05-31 10:46:00 +02:00 committed by GitHub
parent ae43d838c7
commit f4a8cf7613

View File

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