/** * @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; }
/** * Implements RouteInterface::build() method * {@inheritdoc} */ public function build(array $parameters = array()) { $path = PathCompiler::build($this->path, $parameters, $this->defaults, $this->requisites); return $path; }