protected function parseRoutesData() {
        $routes = $this->routes;
        foreach ($routes as $routeData) {
            $path = $routeData['route'];
            $this->buildPathExpressions($path, true);
        }
        foreach ($this->_routePaths as &$routePaths) {
            $prevCnt = 0;
            ArrayHelper::multisort($routePaths, function($row) use (&$prevCnt) {
                return count($row['params']);
            }, SORT_DESC);
        }
    }
protected function parseRoutesData() {
        $routes = $this->routes;
        foreach ($routes as $routeData) {
            $path = $routeData['route'];
            $this->buildPathExpressions($path, true);
        }
        foreach ($this->_routePaths as &$routePaths) {
            $prevCnt = 0;
            ArrayHelper::multisort($routePaths, function($row) use (&$prevCnt) {
                return count($row['params']);
            }, SORT_DESC);
        }
    }
protected function parseRoutesData ( ) { $ routes = $ this -> routes ; foreach ( $ routes as $ routeData ) { $ path = $ routeData [ 'route' ] ; $ this -> buildPathExpressions ( $ path , true ) ; } foreach ( $ this -> _routePaths as & $ routePaths ) { $ prevCnt = 0 ; ArrayHelper :: multisort ( $ routePaths , function ( $ row ) use ( & $ prevCnt ) { return count ( $ row [ 'params' ] ) ; } , SORT_DESC ) ; } }
Parse routes data to obtain path expressions, those used for URL building
Parse routes data to obtain path expressions those used for URL building