You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
423 B
28 lines
423 B
10 months ago
|
<?php
|
||
|
|
||
|
namespace addons\shopro\facade;
|
||
|
|
||
|
/**
|
||
|
* @see RedisManager
|
||
|
*
|
||
|
*/
|
||
|
class Base
|
||
|
{
|
||
|
|
||
|
public static function getFacadeClass()
|
||
|
{
|
||
|
error_stop('facade 初始化失败');
|
||
|
}
|
||
|
|
||
|
public static function instance()
|
||
|
{
|
||
|
return static::getFacadeClass();
|
||
|
}
|
||
|
|
||
|
public static function __callStatic($funcname, $arguments)
|
||
|
{
|
||
|
return static::instance()->{$funcname}(...$arguments);
|
||
|
}
|
||
|
|
||
|
}
|