Locker\Helpers\Helpers::getLrsFromAuth PHP Method

getLrsFromAuth() static public method

Gets the current LRS from the Authorization header.
static public getLrsFromAuth ( ) : Locker\Helpers\Lrs
return Locker\Helpers\Lrs
    static function getLrsFromAuth()
    {
        list($username, $password) = Helpers::getUserPassFromAuth();
        return Helpers::getLrsFromUserPass($username, $password);
    }

Usage Example

 /**
  * Constructs a new base controller.
  */
 public function __construct()
 {
     $this->lrs = Helpers::getLrsFromAuth();
     list($username, $password) = Helpers::getUserPassFromAuth();
     $this->client = Helpers::getClient($username, $password);
 }
All Usage Examples Of Locker\Helpers\Helpers::getLrsFromAuth