Просмотр исходного кода

merged branch Seldaek/req_time (PR #1432)

Commits
-------

e80ce57 [HttpFoundation] Add REQUEST_TIME by default

Discussion
----------

[HttpFoundation] Add REQUEST_TIME by default

Without this the getting the REQUEST_TIME from the Request in tests is breaking.
Fabien Potencier 14 лет назад
Родитель
Сommit
ea0f327122
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/Symfony/Component/HttpFoundation/Request.php

+ 1 - 0
src/Symfony/Component/HttpFoundation/Request.php

@@ -166,6 +166,7 @@ class Request
             'SCRIPT_NAME'          => '',
             'SCRIPT_FILENAME'      => '',
             'SERVER_PROTOCOL'      => 'HTTP/1.1',
+            'REQUEST_TIME'         => time(),
         );
 
         $components = parse_url($uri);