protected function parse_parameters(Route $route)
    {
        // Get all parameter matches from URL for this route
        $request_url = rtrim($this->request->getPathInfo(), '/') . '/';
        preg_match($route->pattern(), "{$request_url}", $matches);

        $params = array();

        // Retrieve any matches
        foreach ($matches as $key => $value) {
            if (is_string($key)) {
                $params[] = $value;
            }
        }

        return $params;
    }
protected function parse_parameters(Route $route)
    {
        // Get all parameter matches from URL for this route
        $request_url = rtrim($this->request->getPathInfo(), '/') . '/';
        preg_match($route->pattern(), "{$request_url}", $matches);

        $params = array();

        // Retrieve any matches
        foreach ($matches as $key => $value) {
            if (is_string($key)) {
                $params[] = $value;
            }
        }

        return $params;
    }
protected function parse_parameters ( Route $ route ) { // Get all parameter matches from URL for this route $ request_url = rtrim ( $ this -> request -> getPathInfo ( ) , '/' ) . '/' ; preg_match ( $ route -> pattern ( ) , "{$request_url}" , $ matches ) ; $ params = array ( ) ; // Retrieve any matches foreach ( $ matches as $ key => $ value ) { if ( is_string ( $ key ) ) { $ params [ ] = $ value ; } } return $ params ; }
Parses parameters from URI as per the given route's pattern

@param  Route  $route
@return array
Parses parameters from URI as per the given route s pattern