use Symfony\Component\HttpKernel\KernelEvents;
/**
- * Validates that the headers and other information indicating the
- * client IP address of a request are consistent.
+ * Validates Requests.
*
* @author Magnus Nordlander <magnus@fervo.se>
*/
{
/**
* Performs the validation.
- *
- * @param GetResponseEvent $event
*/
public function onKernelRequest(GetResponseEvent $event)
{
$request = $event->getRequest();
if ($request::getTrustedProxies()) {
- // This will throw an exception if the headers are inconsistent.
$request->getClientIps();
}
+
+ $request->getHost();
}
/**