public function toRoute($handler, $parameters = []) { $path = $this->router->getPath($handler, $parameters); return $this->getUrlToPath($path); }