init
- 框架初始化 - 安装插件 - 修复PHP8.4报错
This commit is contained in:
22
addons/shopro/facade/Activity.php
Normal file
22
addons/shopro/facade/Activity.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace addons\shopro\facade;
|
||||
|
||||
use addons\shopro\library\activity\Activity as ActivityManager;
|
||||
use app\admin\model\shopro\activity\Activity as ActivityModel;
|
||||
|
||||
/**
|
||||
* @see RedisManager
|
||||
*
|
||||
*/
|
||||
class Activity extends Base
|
||||
{
|
||||
public static function getFacadeClass()
|
||||
{
|
||||
if (!isset($GLOBALS['SPACTIVITY'])) {
|
||||
$GLOBALS['SPACTIVITY'] = new ActivityManager(ActivityModel::class);
|
||||
}
|
||||
|
||||
return $GLOBALS['SPACTIVITY'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user