mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +03:00
Added abstract method RequestProcessor::saveCallback and its implementation CmsconnectorRequestProcessor::saveCallback
This commit is contained in:
parent
b2a0a6cebd
commit
79c4da8b2c
@ -34,7 +34,7 @@ abstract class RequestProcessor {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Instance of the MibewAPI class
|
* Instance of the MibewAPI class
|
||||||
* @var type
|
* @var MibewAPI
|
||||||
*/
|
*/
|
||||||
protected $mibewAPI = null;
|
protected $mibewAPI = null;
|
||||||
|
|
||||||
@ -202,7 +202,7 @@ abstract class RequestProcessor {
|
|||||||
// TODO: May be add exception if $callback = null
|
// TODO: May be add exception if $callback = null
|
||||||
|
|
||||||
// Store callback
|
// Store callback
|
||||||
$this->storeCallback($callback);
|
$this->saveCallback($token, $callback);
|
||||||
|
|
||||||
// Send asynchronous request
|
// Send asynchronous request
|
||||||
$this->sendAsyncRequest($request);
|
$this->sendAsyncRequest($request);
|
||||||
@ -381,6 +381,14 @@ abstract class RequestProcessor {
|
|||||||
*/
|
*/
|
||||||
protected abstract function getMibewAPIInstance();
|
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
|
* Loads callback function
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user