setFragment() 공개 메소드

Sets the fragment in the URI
public setFragment ( string $fragment ) : void
$fragment string The fragment (aka "anchor")
리턴 void
예제 #1
0
파일: Request.php 프로젝트: neos/flow
 /**
  * Tries to detect the base URI of request.
  *
  * @return void
  */
 protected function detectBaseUri()
 {
     if ($this->baseUri === null) {
         $this->baseUri = clone $this->uri;
         $this->baseUri->setQuery(null);
         $this->baseUri->setFragment(null);
         $this->baseUri->setPath($this->getScriptRequestPath());
     }
 }