Fix app name recognition bug

This commit is contained in:
Dennis Eichhorn 2019-03-17 16:42:06 +01:00
parent 38ed968cc5
commit c59c2d9f2a
2 changed files with 14 additions and 1 deletions

View File

@ -248,7 +248,7 @@ final class Http implements UriInterface
/**
* {@inheritdoc}
*/
public function setPathOffset(int $offset) : void
public function setPathOffset(int $offset = 0) : void
{
$this->pathOffset = $offset;
}

View File

@ -128,6 +128,19 @@ interface UriInterface
*/
public function setRootPath(string $root) : void;
/**
* Set path offset.
*
* This can be used if the uri path starts with elements which are not relevant later on.
*
* @param int $offset Path offset
*
* @return void
*
* @since 1.0.0
*/
public function setPathOffset(int $offset = 0) : void;
/**
* Get path element.
*