You are here

public function AbstractCallback::getStorage in Zircon Profile 8.0

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

Gets an instance of Zend\Feed\Pubsubhubbub\Model\SubscriptionPersistence 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/AbstractCallback.php, line 120

Class

AbstractCallback

Namespace

Zend\Feed\PubSubHubbub

Code

public function getStorage() {
  if ($this->storage === null) {
    throw new Exception\RuntimeException('No storage object has been' . ' set that subclasses Zend\\Feed\\Pubsubhubbub\\Model\\SubscriptionPersistence');
  }
  return $this->storage;
}