Merge pull request #2904 from splitbrain/addCall

Make handler methods accessible again
This commit is contained in:
Andreas Gohr 2020-01-15 09:48:53 +01:00 committed by GitHub
commit dda7ccc448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -44,11 +44,17 @@ class Doku_Handler {
* @param mixed $args arguments for this call * @param mixed $args arguments for this call
* @param int $pos byte position in the original source file * @param int $pos byte position in the original source file
*/ */
protected function addCall($handler, $args, $pos) { public function addCall($handler, $args, $pos) {
$call = array($handler,$args, $pos); $call = array($handler,$args, $pos);
$this->callWriter->writeCall($call); $this->callWriter->writeCall($call);
} }
/** @deprecated 2019-10-31 use addCall() instead */
public function _addCall($handler, $args, $pos) {
dbg_deprecated('addCall');
$this->addCall($handler, $args, $pos);
}
/** /**
* Similar to addCall, but adds a plugin call * Similar to addCall, but adds a plugin call
* *
@ -58,7 +64,7 @@ class Doku_Handler {
* @param int $pos byte position in the original source file * @param int $pos byte position in the original source file
* @param string $match matched syntax * @param string $match matched syntax
*/ */
protected function addPluginCall($plugin, $args, $state, $pos, $match) { public function addPluginCall($plugin, $args, $state, $pos, $match) {
$call = array('plugin',array($plugin, $args, $state, $match), $pos); $call = array('plugin',array($plugin, $args, $state, $match), $pos);
$this->callWriter->writeCall($call); $this->callWriter->writeCall($call);
} }