added new socketmanager, testing and exception ahndling not done yet
This commit is contained in:
@@ -153,8 +153,6 @@ class CallbackManager {
|
||||
return $this->removeCallbackListener($this->callbackListenings, $listener);
|
||||
}
|
||||
|
||||
//TODO better name (used only in customvotesPlugin)
|
||||
|
||||
/**
|
||||
* Remove the Callback Listener from the given Listeners Array
|
||||
*
|
||||
@@ -212,6 +210,9 @@ class CallbackManager {
|
||||
// Manage Timings
|
||||
$this->maniaControl->getTimerManager()->manageTimings();
|
||||
|
||||
// Manage Socket Tickets
|
||||
$this->maniaControl->getSocketManager()->tick();
|
||||
|
||||
// Server Callbacks
|
||||
if (!$this->maniaControl->getClient()) {
|
||||
return;
|
||||
|
@@ -57,9 +57,10 @@ class Listening {
|
||||
* Trigger the Listener's Method with the given Array of Params
|
||||
*
|
||||
* @param array $params
|
||||
* @return mixed
|
||||
*/
|
||||
public function triggerCallbackWithParams(array $params) {
|
||||
call_user_func_array($this->getUserFunction(), $params);
|
||||
return call_user_func_array($this->getUserFunction(), $params);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user