src/Routes/UrlManager.php
protected function buildRoutePath($path, &$params) {
        $path = $this->replacePlaceholders($path, $params);
        $path = $this->searchInRouter($path, $params);
        return $path;
    }
protected function buildRoutePath($path, &$params) {
        $path = $this->replacePlaceholders($path, $params);
        $path = $this->searchInRouter($path, $params);
        return $path;
    }
Build route path with placeholders replace and searching in router paths
@param string $path
@param array  $params
@return string