feat(nginx-log): NginxLogClean 定时任务 + timer config 注册(完成 3 个 nginx 任务)

This commit is contained in:
augushong
2026-07-28 06:00:15 +08:00
parent 13b1313e92
commit 8eaa672ed6
3 changed files with 208 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
namespace app\tools\controller\timer;
use base\tools\controller\timer\NginxLogCleanBase;
/**
* nginx 日志清理定时任务App 入口类).
*
* 框架路由 /tools/timer.NginxLogClean/do 与 /tools/timer.NginxLogClean/execute
* 均通过本类入口实例化(依赖倒置:定时器框架/路由系统直接调本类,不调 Base
*
* 业务侧如需定制清理行为(如改批大小、加自定义过滤、改保留策略等),
* 重写本类对应方法即可拦截,无需改动 extend/base/。
*/
class NginxLogClean extends NginxLogCleanBase
{
}