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;
    }