src/Mvc/Controller/Request.php
public static function parseFromServerRequest($serverVars, $defaultController = 'Index', $defaultAction = 'index')
    {
        if (! isset($serverVars['REQUEST_URI'])) {
            throw new InvalidUrlException("No such uri provided");
        }
        return self::parse($serverVars['REQUEST_URI'], $serverVars, $defaultController, $defaultAction);
    }
public static function parseFromServerRequest($serverVars, $defaultController = 'Index', $defaultAction = 'index')
    {
        if (! isset($serverVars['REQUEST_URI'])) {
            throw new InvalidUrlException("No such uri provided");
        }
        return self::parse($serverVars['REQUEST_URI'], $serverVars, $defaultController, $defaultAction);
    }
Parse uri directly from request uri

@param array $serverVars
The server variables provided by sapi
@param string $defaultController The
name of the default controller
@param string $defaultAction The
name of the default action

@return \Nkey\Caribu\Mvc\Controller\Request

@throws InvalidUrlException If no uri exists (e.g. sapi = cli)