phpdoc for Admins-ApiCommand

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-03-26 10:13:51 +02:00
parent c98be3c04f
commit efb416ae7c
3 changed files with 157 additions and 11 deletions

View File

@@ -105,7 +105,6 @@ class FroxlorRPC
// it will recognize non-api classes+methods as valid commands
$apiclass = FROXLOR_INSTALL_DIR . '/lib/classes/api/commands/class.' . $command[0] . '.php';
if (! file_exists($apiclass) || ! @method_exists($command[0], $command[1])) {
// there will be an exception from the autoloader for class_exists hence the try-catch-block
throw new Exception("Unknown command", 400);
}
return array(