- Now loading from annotations instead of crontab.php file

This commit is contained in:
Dave Mc Nicoll committed 2025-04-03 19:36:00 +00:00
1 parent ea2e52728b
commit c309facbd3
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ return [
return new HtmlResponse(sprintf("%s - cron task begin...", date('Y-m-d H:i:s'))); return new HtmlResponse(sprintf("%s - cron task begin...", date('Y-m-d H:i:s')));
}, []); }, []);
return $cronardMiddleware->fromFile(getenv("META_PATH")."/crontab.php")->fromAnnotations($c->get(TaskFetcher::class)); return $cronardMiddleware->fromAnnotations($c->get(TaskFetcher::class));
}, },
TaskFetcher::class => function($c) { TaskFetcher::class => function($c) {