mirror of
https://git.beihong.wang/wangbeihong/blog-source.git
synced 2026-04-23 11:33:04 +08:00
initial
This commit is contained in:
25
var/IXR/Hook.php
Executable file
25
var/IXR/Hook.php
Executable 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;
|
||||
}
|
||||
Reference in New Issue
Block a user