src/Security/SecurityToken.php
protected function getRequestToken($request)
    {
        $name = $this->getName();
        $header = 'X-' . ucwords(strtolower($name));
        if ($token = $request->getHeader($header)) {
            return $token;
        }

        // Get from request var
        return $request->requestVar($name);
    }
protected function getRequestToken($request)
    {
        $name = $this->getName();
        $header = 'X-' . ucwords(strtolower($name));
        if ($token = $request->getHeader($header)) {
            return $token;
        }

        // Get from request var
        return $request->requestVar($name);
    }
protected function getRequestToken ( $ request ) { $ name = $ this -> getName ( ) ; $ header = 'X-' . ucwords ( strtolower ( $ name ) ) ; if ( $ token = $ request -> getHeader ( $ header ) ) { return $ token ; } // Get from request var return $ request -> requestVar ( $ name ) ; }
Get security token from request

@param HTTPRequest $request
@return string
Get security token from request