This commit is contained in:
root
2026-03-04 00:23:03 +08:00
commit 6136d791f2
611 changed files with 65539 additions and 0 deletions

25
var/IXR/Hook.php Executable file
View File

@@ -0,0 +1,25 @@
<?php
namespace IXR;
use ReflectionMethod;
/**
* hook rpc call
*/
interface Hook
{
/**
* @param string $methodName
* @param ReflectionMethod $reflectionMethod
* @param array $parameters
* @return mixed
*/
public function beforeRpcCall(string $methodName, ReflectionMethod $reflectionMethod, array $parameters);
/**
* @param string $methodName
* @param mixed $result
*/
public function afterRpcCall(string $methodName, &$result): void;
}