private function mapRoute2Index($route)
    {
        $routeIndex = $this->mapRoute2IndexKey($route);

        if ($routeIndex) {
            return [$routeIndex, $this->index[$routeIndex]];
        }

        $msg = t("The route '!ROUTE' does not exists in the index.", [
            "!ROUTE" => $route
        ]);
        throw new \Anax\Exception\NotFoundException($msg);
    }
private function mapRoute2Index($route)
    {
        $routeIndex = $this->mapRoute2IndexKey($route);

        if ($routeIndex) {
            return [$routeIndex, $this->index[$routeIndex]];
        }

        $msg = t("The route '!ROUTE' does not exists in the index.", [
            "!ROUTE" => $route
        ]);
        throw new \Anax\Exception\NotFoundException($msg);
    }
private function mapRoute2Index ( $ route ) { $ routeIndex = $ this -> mapRoute2IndexKey ( $ route ) ; if ( $ routeIndex ) { return [ $ routeIndex , $ this -> index [ $ routeIndex ] ] ; } $ msg = t ( "The route '!ROUTE' does not exists in the index." , [ "!ROUTE" => $ route ] ) ; throw new \ Anax \ Exception \ NotFoundException ( $ msg ) ; }
Map the route to the correct entry in the index.

@param string $route current route used to access page.

@return array as the matched route.
Map the route to the correct entry in the index .