get referer

This commit is contained in:
Dennis Eichhorn 2021-03-05 20:58:22 +01:00
parent fe2c5676e1
commit 4b33cb660f

View File

@ -623,6 +623,18 @@ final class HttpRequest extends RequestAbstract
}
}
/**
* Get referer.
*
* @return int
*
* @since 1.0.0
*/
public function getReferer() : string
{
return $_SERVER['HTTP_REFERER'] ?? '';
}
/**
* Get request method.
*