private function encodeAppAuthorization($consumer)
    {
        // TODO: key and secret should be rfc 1738 encoded
        $key = $consumer->key;
        $secret = $consumer->secret;
        return base64_encode($key . ':' . $secret);
    }
private function encodeAppAuthorization($consumer)
    {
        // TODO: key and secret should be rfc 1738 encoded
        $key = $consumer->key;
        $secret = $consumer->secret;
        return base64_encode($key . ':' . $secret);
    }
private function encodeAppAuthorization ( $ consumer ) { // TODO: key and secret should be rfc 1738 encoded $ key = $ consumer -> key ; $ secret = $ consumer -> secret ; return base64_encode ( $ key . ':' . $ secret ) ; }
Encode application authorization header with base64.

@param Consumer $consumer

@return string
Encode application authorization header with base64 .