src/Http/Models/En_HttpRequest.php
public function getToken(){
        if(!$this->token){
            if($this->getHeader('Authorization') != NULL){
                $this->token= $this->getHeader('Authorization');
            }
            if(!$this->token && $this->getParam('token')){
                $this->token= $this->getParam('token');
            }
        }
        return $this->token;
    }
public function getToken(){
        if(!$this->token){
            if($this->getHeader('Authorization') != NULL){
                $this->token= $this->getHeader('Authorization');
            }
            if(!$this->token && $this->getParam('token')){
                $this->token= $this->getParam('token');
            }
        }
        return $this->token;
    }
public function getToken ( ) { if ( ! $ this -> token ) { if ( $ this -> getHeader ( 'Authorization' ) != NULL ) { $ this -> token = $ this -> getHeader ( 'Authorization' ) ; } if ( ! $ this -> token && $ this -> getParam ( 'token' ) ) { $ this -> token = $ this -> getParam ( 'token' ) ; } } return $ this -> token ; }
Retorna el token actual de la peticion
Busca en el header Authorization o una variable get token
@return string
Retorna el token actual de la peticion Busca en el header Authorization o una variable get token