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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user