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