mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-08-30 12:45:32 +08:00
feat(nginx-log): NginxLogClean 定时任务 + timer config 注册(完成 3 个 nginx 任务)
This commit is contained in:
20
app/tools/controller/timer/NginxLogClean.php
Normal file
20
app/tools/controller/timer/NginxLogClean.php
Normal 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
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user