public function getTokenFromRequest( RequestInterface $request ) {
		if ( $request->get( $this->key ) ) {
			return $request->get( $this->key );
		}

		if ( $request->post( $this->key ) ) {
			return $request->post( $this->key );
		}

		if ( $request->headers( $this->header ) ) {
			return $request->headers( $this->header );
		}

		return '';
	}
public function getTokenFromRequest( RequestInterface $request ) {
		if ( $request->get( $this->key ) ) {
			return $request->get( $this->key );
		}

		if ( $request->post( $this->key ) ) {
			return $request->post( $this->key );
		}

		if ( $request->headers( $this->header ) ) {
			return $request->headers( $this->header );
		}

		return '';
	}
public function getTokenFromRequest ( RequestInterface $ request ) { if ( $ request -> get ( $ this -> key ) ) { return $ request -> get ( $ this -> key ) ; } if ( $ request -> post ( $ this -> key ) ) { return $ request -> post ( $ this -> key ) ; } if ( $ request -> headers ( $ this -> header ) ) { return $ request -> headers ( $ this -> header ) ; } return '' ; }
Get the csrf token from a request.

@param  RequestInterface $request
@return string
Get the csrf token from a request .