resolvePathInfo() protected method

A path info refers to the part that is after the entry script and before the question mark (query string). The starting slashes are both removed (ending slashes will be kept).
protected resolvePathInfo ( ) : string
return string part of the request URL that is after the entry script and before the question mark. Note, the returned path info is decoded.
Example #1
0
 public function resolvePathInfo()
 {
     if ($this->getUrl() === $this->adminUrl) {
         return "";
     } else {
         return parent::resolvePathInfo();
     }
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function resolvePathInfo()
 {
     return $this->getUrl() !== $this->accessUrl ? parent::resolvePathInfo() : "";
 }