Misc fixes and improvements

* Added request logging to com.noccy.apiclient
* Added plugin com.noccy.watcher
* Added pipe command and filter support
* Fixes and stubs
This commit is contained in:
2021-12-14 23:01:25 +01:00
parent 8cc1eac7a4
commit 30dfd4889b
22 changed files with 648 additions and 3 deletions

View File

@ -0,0 +1,24 @@
<?php // "name":"Watch files and act when they are changed", "author":"Noccy"
namespace SparkPlug\Com\Noccy\Watcher;
class WatcherPlug extends \SparkPlug {
private ?FileWatcher $watcher = null;
public function load()
{
register_command(new Commands\WatchCommand());
//register_command(new PdoExecCommand());
}
public function getFileWatcher(): FileWatcher
{
if (!$this->watcher) {
$this->watcher = new FileWatcher();
}
return $this->watcher;
}
}
register_plugin("com.noccy.watcher", new WatcherPlug);