Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function getPath($pattern)
 {
     if (isset($pattern)) {
         return RouteBase::insertParameters($pattern, $this->parameters);
     }
     return $this->parameters;
 }
Exemple #2
0
 /**
  * {@inheritdoc}
  */
 public function fromString($routeString)
 {
     $routeString = RouteBase::stripAttributes($routeString, $route);
     $route['path'] = substr($routeString, 5);
     return $this->fromArray($route);
 }