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

@ -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}
*/ */