You are here

public function Subscriber::getStorage 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::getStorage()

Gets an instance of Zend\Feed\Pubsubhubbub\Storage\StoragePersistence used to background save any verification tokens associated with a subscription or other.

Return value

Model\SubscriptionPersistenceInterface

Throws

Exception\RuntimeException

File

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

Class

Subscriber

Namespace

Zend\Feed\PubSubHubbub

Code

public function getStorage() {
  if ($this->storage === null) {
    throw new Exception\RuntimeException('No storage vehicle ' . 'has been set.');
  }
  return $this->storage;
}