示例#1
0
文件: AssetRoute.php 项目: jivoo/http
 /**
  * {@inheritdoc}
  */
 public function getPath($pattern)
 {
     if (isset($pattern)) {
         return RouteBase::insertParameters($pattern, $this->parameters);
     }
     return $this->parameters;
 }
示例#2
0
文件: PathScheme.php 项目: jivoo/http
 /**
  * {@inheritdoc}
  */
 public function fromString($routeString)
 {
     $routeString = RouteBase::stripAttributes($routeString, $route);
     $route['path'] = substr($routeString, 5);
     return $this->fromArray($route);
 }