Пример #1
0
 public function format($uri = null, array $params = [])
 {
     $obj = RequestUri::detect();
     if ($uri && $this->router) {
         $obj->setRequest($this->router->format($uri, $params));
     } else {
         $obj->setRequest($uri)->setParams($params);
     }
     return (string) $obj;
 }
Пример #2
0
 private function initDefaultUri()
 {
     return $this->setUri(Uri::detect());
 }
Пример #3
0
 public function suffixesContainingPartsWithDotsButNoSuffix()
 {
     $uri = new Uri('http://test.com/test.something/test');
     $this->assert(!$uri->getSuffix(), 'No suffix should have been set.');
 }