Protecting against unexpected flow

This commit is contained in:
Dennis Eichhorn 2016-03-26 18:26:22 +01:00
parent d1f6ba7f12
commit 0af064eebe

View File

@ -139,7 +139,8 @@ class Http implements UriInterface
*/ */
public function setRootPath(string $root) public function setRootPath(string $root)
{ {
return $this->rootPath = $root; $this->rootPath = $root;
$this->set($this->uri);
} }
/** /**
@ -293,7 +294,7 @@ class Http implements UriInterface
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function set(string $uri) private function set(string $uri)
{ {
$this->uri = $uri; $this->uri = $uri;