diff --git a/README.md b/README.md index 42d541e..fe34008 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ php ./bin/startWs.php start ``` crontab: 基础于workerman crontab ``` -php ./bin/crontab.php start == composer crontab +php ./bin/crontab.php start ``` @@ -273,6 +273,28 @@ class TestEventListener implements BaseListenerInterface } ``` +### crontab 秒级定时任务 使用的workerman crontab +```php +get(TestRepository::class)->test1(); +// di()->get(TestRepository::class)->fromRepos(); + } +} +``` ## 依赖如下组件 并查阅文档 使用 组合了 此框架 ```