mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Revert changes
Removes termination callback
This commit is contained in:
committed by
GitHub
parent
1e779aba67
commit
3e907a00a9
@@ -1686,27 +1686,4 @@ class Restler extends EventDispatcher
|
||||
), $this->responseData);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* terminate call
|
||||
*
|
||||
* Call _terminate_{methodName}_{extension} if exists with the composed and
|
||||
* serialized (applying the reponse format) response data
|
||||
*
|
||||
* @example _terminate_post_json
|
||||
*/
|
||||
public function terminate()
|
||||
{
|
||||
$o = & $this->apiMethodInfo;
|
||||
$terminateCall = '_terminate_' . $o->methodName . '_' .
|
||||
$this->responseFormat->getExtension();
|
||||
if (method_exists($o->className, $terminateCall)) {
|
||||
$this->dispatch('terminateCall');
|
||||
$this->responseData = call_user_func(array(
|
||||
Scope::get($o->className),
|
||||
$terminateCall
|
||||
), $this->responseData);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user