Commit 37dbeef2 by Franz Liedke

Use LARAVEL_START constant to calculate request time.

Suggested by @Kindari.
parent 204a6a79
......@@ -181,20 +181,11 @@ class Request {
/**
* Get the timestamp of the time when the request was started.
*
* The value is actually calculated when this function gets first called.
*
* @return int
*/
public static function time()
{
static $time;
if (!isset($time))
{
$time = time();
}
return $time;
return (int) LARAVEL_START;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment