removed provides functionality. need to explore doing this in a way that is more friendly to http, such as using the accept header.

This commit is contained in:
Taylor Otwell
2011-10-29 21:02:01 -05:00
parent a2aebdb03f
commit 866f5d8fc3
4 changed files with 33 additions and 82 deletions

View File

@@ -33,21 +33,6 @@ class Request {
return (is_null(static::$uri)) ? static::$uri = new URI($_SERVER) : static::$uri;
}
/**
* Get the request format.
*
* The format is determined by taking the "extension" of the URI.
*
* @param string $uri
* @return string
*/
public static function format($uri = null)
{
if (is_null($uri)) $uri = static::uri()->get();
return (($extension = pathinfo($uri, PATHINFO_EXTENSION)) !== '') ? $extension : 'html';
}
/**
* Get the request method.
*