protected function parseRoute($route)
    {
        $parsedRoute = parse_url($route);

        if (isset($parsedRoute['query'])) {
            parse_str($parsedRoute['query'], $parsedRoute['params']);
        } else {
            $parsedRoute['params'] = [];
        }

        $resolvedRoute = new Resolver(new \common_http_Request($route));
        $this->propagate($resolvedRoute);
        $parsedRoute['extension']         = $resolvedRoute->getExtensionId();
        $parsedRoute['controller']        = $resolvedRoute->getControllerShortName();
        $parsedRoute['controller_class']  = $resolvedRoute->getControllerClass();
        $parsedRoute['action']            = $resolvedRoute->getMethodName();

        return $parsedRoute;
    }
protected function parseRoute($route)
    {
        $parsedRoute = parse_url($route);

        if (isset($parsedRoute['query'])) {
            parse_str($parsedRoute['query'], $parsedRoute['params']);
        } else {
            $parsedRoute['params'] = [];
        }

        $resolvedRoute = new Resolver(new \common_http_Request($route));
        $this->propagate($resolvedRoute);
        $parsedRoute['extension']         = $resolvedRoute->getExtensionId();
        $parsedRoute['controller']        = $resolvedRoute->getControllerShortName();
        $parsedRoute['controller_class']  = $resolvedRoute->getControllerClass();
        $parsedRoute['action']            = $resolvedRoute->getMethodName();

        return $parsedRoute;
    }
protected function parseRoute ( $ route ) { $ parsedRoute = parse_url ( $ route ) ; if ( isset ( $ parsedRoute [ 'query' ] ) ) { parse_str ( $ parsedRoute [ 'query' ] , $ parsedRoute [ 'params' ] ) ; } else { $ parsedRoute [ 'params' ] = [ ] ; } $ resolvedRoute = new Resolver ( new \ common_http_Request ( $ route ) ) ; $ this -> propagate ( $ resolvedRoute ) ; $ parsedRoute [ 'extension' ] = $ resolvedRoute -> getExtensionId ( ) ; $ parsedRoute [ 'controller' ] = $ resolvedRoute -> getControllerShortName ( ) ; $ parsedRoute [ 'controller_class' ] = $ resolvedRoute -> getControllerClass ( ) ; $ parsedRoute [ 'action' ] = $ resolvedRoute -> getMethodName ( ) ; return $ parsedRoute ; }
Parses the provided context route
@param string $route
@return array
Parses the provided context route