wp-china-yes/Service/Base.php

29 lines
400 B
PHP
Raw Normal View History

2024-03-08 20:36:09 +08:00
<?php
namespace WenPai\ChinaYes\Service;
defined( 'ABSPATH' ) || exit;
/**
* Class Base
* 插件主服务
* @package WenPai\ChinaYes\Service
*/
class Base {
public function __construct() {
// 加速服务
new Super();
2024-03-08 21:48:15 +08:00
// 监控服务
new Monitor();
2025-01-02 10:36:40 +08:00
// 内存服务
new Memory();
2024-03-08 20:36:09 +08:00
// 更新服务
new Update();
2024-11-19 17:47:44 +08:00
if ( is_admin() ) {
2025-01-02 10:36:40 +08:00
// 设置服务
new Setting();
2024-11-19 17:47:44 +08:00
}
2024-03-08 20:36:09 +08:00
}
}