mirror of
https://github.com/getgrav/grav.git
synced 2026-05-06 15:57:14 +02:00
Request object: Include attribute for request time
This commit is contained in:
@@ -25,6 +25,7 @@ class RequestProcessor extends ProcessorBase
|
||||
$this->startTimer();
|
||||
$request = $request
|
||||
->withAttribute('grav', $this->container)
|
||||
->withAttribute('time', $_SERVER['REQUEST_TIME_FLOAT'] ?? GRAV_REQUEST_TIME)
|
||||
->withAttribute('route', Uri::getCurrentRoute())
|
||||
->withAttribute('referrer', $this->container['uri']->referrer());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user