Example #1
0
 /**
  * Create a path and decorate it with the given options
  *
  * @param string $routeName The name of the route
  * @param array $params
  * @param array $options
  * @return string The decorated url/path
  */
 public function url($routeName, array $params = array(), array $options = array())
 {
     return $this->decorator->decorate($this->router->encode($routeName, $params), $options);
 }
Example #2
0
 public function encode($key, &$options, &$segments)
 {
     $segments[] = 'api';
     return parent::encode($key, $options, $segments);
 }