- WIP on File lib and CLI's definition
This commit is contained in:
1 parent
777f4af1aa
commit
2e51ff9f4a
3 files changed
+44
-19
No files matched your search
@@ -11,24 +11,6 @@ use Notes\CLI\CommandFetcher;
|
||||
use Lean\Lean;
|
||||
|
||||
return [
|
||||
/*CronardMiddleware::class => function($c) {
|
||||
$cronardMiddleware = new CronardMiddleware($c, getenv('CRON_KEY'), function() : ResponseInterface {
|
||||
return new HtmlResponse(sprintf("%s - cron task begin...", date('Y-m-d H:i:s')));
|
||||
}, [], $c->get(TaskFetcher::class));
|
||||
|
||||
return $cronardMiddleware->fromFile(getenv("META_PATH")."/crontab.php")->fromAnnotations($c->get(TaskFetcher::class));
|
||||
},
|
||||
|
||||
TaskFetcher::class => function($c) {
|
||||
$fetcher = new TaskFetcher(null, null, $c->get('cronard.caching'));
|
||||
|
||||
$fetcher->setFolderList(array_map(function($item) {
|
||||
return $item;
|
||||
}, $c->get(Lean::class)->getCronard()));
|
||||
|
||||
return $fetcher;
|
||||
},*/
|
||||
|
||||
CommandFetcher::class => function($c) {
|
||||
$fetcher = new CommandFetcher(null, null, $c->get('cli.caching'));
|
||||
|
||||
|
||||
Reference in new issue
Block a user