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:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user