Browse Source

Use LARAVEL_START constant to calculate request time.

Suggested by @Kindari.
Franz Liedke 12 years ago
parent
commit
37dbeef2bb
1 changed files with 1 additions and 10 deletions
  1. 1 10
      laravel/request.php

+ 1 - 10
laravel/request.php

@@ -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;
 	}
 
 	/**