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:
24
plugins/com.noccy.watcher/sparkplug.php
Normal file
24
plugins/com.noccy.watcher/sparkplug.php
Normal 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);
|
Reference in New Issue
Block a user