diff --git a/src/messenger/webim/libs/classes/request_processor.php b/src/messenger/webim/libs/classes/request_processor.php index bf2b9d54..fe9f10da 100644 --- a/src/messenger/webim/libs/classes/request_processor.php +++ b/src/messenger/webim/libs/classes/request_processor.php @@ -34,7 +34,7 @@ abstract class RequestProcessor { /** * Instance of the MibewAPI class - * @var type + * @var MibewAPI */ protected $mibewAPI = null; @@ -202,7 +202,7 @@ abstract class RequestProcessor { // TODO: May be add exception if $callback = null // Store callback - $this->storeCallback($callback); + $this->saveCallback($token, $callback); // Send asynchronous request $this->sendAsyncRequest($request); @@ -381,6 +381,14 @@ abstract class RequestProcessor { */ protected abstract function getMibewAPIInstance(); + /** + * Stores callback function + * + * @param string $token Request token + * @param array $callback Callback function array + */ + protected abstract function saveCallback($token, $callback); + /** * Loads callback function *