1234567891011121314151617181920212223242526272829 |
- <?php
- namespace app\common\facade;
- use app\common\exception\BusinessException;
- /**
- * @see RedisManager
- *
- */
- class Base
- {
- public static function getFacadeClass()
- {
- throw new BusinessException('facade 初始化失败');
- }
- public static function instance()
- {
- return static::getFacadeClass();
- }
- public static function __callStatic($funcname, $arguments)
- {
- return static::instance()->{$funcname}(...$arguments);
- }
- }
|