src/Graviton/SecurityBundle/Authentication/Strategies/AbstractHttpStrategy.php
protected function extractFieldInfo($header, $fieldName)
    {
        if ($header instanceof ParameterBag || $header instanceof HeaderBag) {
            $this->validateField($header, $fieldName);
            return $header->get($fieldName, '');
        }

        throw new \InvalidArgumentException('Provided request information are not valid.');
    }
protected function extractFieldInfo($header, $fieldName)
    {
        if ($header instanceof ParameterBag || $header instanceof HeaderBag) {
            $this->validateField($header, $fieldName);
            return $header->get($fieldName, '');
        }

        throw new \InvalidArgumentException('Provided request information are not valid.');
    }
protected function extractFieldInfo ( $ header , $ fieldName ) { if ( $ header instanceof ParameterBag || $ header instanceof HeaderBag ) { $ this -> validateField ( $ header , $ fieldName ) ; return $ header -> get ( $ fieldName , '' ) ; } throw new \ InvalidArgumentException ( 'Provided request information are not valid.' ) ; }
Extracts information from the a request header field.

@param ParameterBag|HeaderBag $header    object representation of the request header.
@param string                 $fieldName Name of the field to be read.

@return string
Extracts information from the a request header field .