Get the resource part of the the request, including the path, query string, and fragment
string
Overrides RequestInterface::getResource
public function getResource() {
return $this->url
->getPath() . (string) $this->url
->getQuery();
}