request(); $uri = $req->getUrl(); if ($withUri) { $uri .= $req->getRootUri(); } return $uri; }