protected getFirstTrustedProxyHeaderValue ( string $type, |
||
$type | string | One of the HEADER_* constants |
$request | The request to get the trusted proxy header from | |
return | mixed | null | The first value of this header type or NULL if this header type should not be trusted |
protected function getFirstTrustedProxyHeaderValue($type, Request $request)
{
$values = $this->getTrustedProxyHeaderValues($type, $request)->current();
return $values !== null ? reset($values) : null;
}