src/Routes/UrlManager.php
protected function searchInRouter($path, &$params) {
        if (isset(\Reaction::$app->router->routePaths[$path])) {
            $paramsKeys = array_keys($params);
            $routes = \Reaction::$app->router->routePaths[$path];
            foreach ($routes as $routeData) {
                $intersect = array_intersect($paramsKeys, $routeData['params']);
                if (count($intersect) === count($routeData['params'])) {
                    $path = $this->replacePlaceholders($routeData['exp'], $params);
                    break;
                }
            }
            return $path;
        }
        return $path;
    }
protected function searchInRouter($path, &$params) {
        if (isset(\Reaction::$app->router->routePaths[$path])) {
            $paramsKeys = array_keys($params);
            $routes = \Reaction::$app->router->routePaths[$path];
            foreach ($routes as $routeData) {
                $intersect = array_intersect($paramsKeys, $routeData['params']);
                if (count($intersect) === count($routeData['params'])) {
                    $path = $this->replacePlaceholders($routeData['exp'], $params);
                    break;
                }
            }
            return $path;
        }
        return $path;
    }
Search in router for predefined paths
@param string $path
@param array  $params
@return string