Ejemplo n.º 1
0
 /**
  * @param PathCompiler $compiler
  * @return array
  */
 public function compile(PathCompiler $compiler)
 {
     $data = $compiler->compile($this->path);
     $data += array('callback' => $this->callback, 'methods' => (array) $this->methods);
     return $data;
 }
Ejemplo n.º 2
0
 /**
  * Implements RouteInterface::build() method
  * {@inheritdoc}
  */
 public function build(array $parameters = array())
 {
     $path = PathCompiler::build($this->path, $parameters, $this->defaults, $this->requisites);
     return $path;
 }