Base.php 423 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace addons\shopro\facade;
  3. /**
  4. * @see RedisManager
  5. *
  6. */
  7. class Base
  8. {
  9. public static function getFacadeClass()
  10. {
  11. error_stop('facade 初始化失败');
  12. }
  13. public static function instance()
  14. {
  15. return static::getFacadeClass();
  16. }
  17. public static function __callStatic($funcname, $arguments)
  18. {
  19. return static::instance()->{$funcname}(...$arguments);
  20. }
  21. }