// 调用实际类的方法
public static function __callStatic($method, $params)
{
return call_user_func_array([static::createFacade(), $method], $params);
}
//tp5.1源码,调用实际类方式
//方法解释
class foo {
function bar($arg, $arg2) {
echo __METHOD__, " got $arg and $arg2\n";
}
}
$foo = new foo;
call_user_func_array(array($foo, "bar"), array("three", "four"));