public function Subscriber::addAuthentication in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/PubSubHubbub/Subscriber.php \Zend\Feed\PubSubHubbub\Subscriber::addAuthentication()
Add authentication credentials for a given URL
Parameters
string $url:
array $authentication:
Return value
Throws
Exception\InvalidArgumentException
1 call to Subscriber::addAuthentication()
- Subscriber::addAuthentications in vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ Subscriber.php - Add authentication credentials for hub URLs
File
- vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ Subscriber.php, line 387
Class
Namespace
Zend\Feed\PubSubHubbubCode
public function addAuthentication($url, array $authentication) {
if (empty($url) || !is_string($url) || !Uri::factory($url)
->isValid()) {
throw new Exception\InvalidArgumentException('Invalid parameter "url"' . ' of "' . $url . '" must be a non-empty string and a valid' . ' URL');
}
$this->authentications[$url] = $authentication;
return $this;
}