protected function receiveTokenFieldValueFromRequest($value = null)
    {
        $requestQueryParameter = $this->getRequest()->getQueryParams();
        $requestBody           = $this->getRequest()->getParsedBody();
        $fieldname             = $this->getFieldnameToken();

        if (true === isset($requestQueryParameter[$fieldname])) {
            $value = $requestQueryParameter[$fieldname];
        } elseif (true === isset($requestBody[$fieldname])) {
            $value = $requestBody[$fieldname];
        }

        return $value;
    }
protected function receiveTokenFieldValueFromRequest($value = null)
    {
        $requestQueryParameter = $this->getRequest()->getQueryParams();
        $requestBody           = $this->getRequest()->getParsedBody();
        $fieldname             = $this->getFieldnameToken();

        if (true === isset($requestQueryParameter[$fieldname])) {
            $value = $requestQueryParameter[$fieldname];
        } elseif (true === isset($requestBody[$fieldname])) {
            $value = $requestBody[$fieldname];
        }

        return $value;
    }
protected function receiveTokenFieldValueFromRequest ( $ value = null ) { $ requestQueryParameter = $ this -> getRequest ( ) -> getQueryParams ( ) ; $ requestBody = $ this -> getRequest ( ) -> getParsedBody ( ) ; $ fieldname = $ this -> getFieldnameToken ( ) ; if ( true === isset ( $ requestQueryParameter [ $ fieldname ] ) ) { $ value = $ requestQueryParameter [ $ fieldname ] ; } elseif ( true === isset ( $ requestBody [ $ fieldname ] ) ) { $ value = $ requestBody [ $ fieldname ] ; } return $ value ; }
Checks and returns the token of current request.

@param string $value Default token used as fallback.

@author Benjamin Carl <opensource@clickalicious.de>

@return string|null Token as string if submitted, otherwise NULL
Checks and returns the token of current request .