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

@ -27,6 +27,9 @@ class ResourceManager
public function createNamedResource(string $name, string $type, array $options)
{
if (array_key_exists($name, $this->namedResources)) {
fprintf(STDERR, "warning: Redefining named resource %s\n", $name);
}
$resource = $this->createResource($type, $options);
$this->namedResources[$name] = $resource;
return $resource;
@ -46,4 +49,4 @@ class ResourceManager
{
return $this->resourceTypes;
}
}
}