You are here

protected function Subscriber::_generateSubscriptionKey in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/PubSubHubbub/Subscriber.php \Zend\Feed\PubSubHubbub\Subscriber::_generateSubscriptionKey()

Simple helper to generate a verification token used in (un)subscribe requests to a Hub Server.

Parameters

array $params:

string $hubUrl The Hub Server URL for which this token will apply:

Return value

string

1 call to Subscriber::_generateSubscriptionKey()
Subscriber::_getRequestParameters in vendor/zendframework/zend-feed/src/PubSubHubbub/Subscriber.php
Return a list of standard protocol/optional parameters for addition to client's POST body that are specific to the current Hub Server URL

File

vendor/zendframework/zend-feed/src/PubSubHubbub/Subscriber.php, line 773

Class

Subscriber

Namespace

Zend\Feed\PubSubHubbub

Code

protected function _generateSubscriptionKey(array $params, $hubUrl) {
  $keyBase = $params['hub.topic'] . $hubUrl;
  $key = md5($keyBase);
  return $key;
}