From 163ef9fbfe26ab314d434eb772052d8794c5ee97 Mon Sep 17 00:00:00 2001 From: Roman Date: Wed, 24 Apr 2024 16:58:18 +0200 Subject: [PATCH] Fixed API-Stub generation in cli.php --- cli.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cli.php b/cli.php index b74beea..436fb3c 100755 --- a/cli.php +++ b/cli.php @@ -900,8 +900,9 @@ function onAPI(array $argv): void { return \$this->success; } - public static function getDefaultACL(Insert \$insert): void { - \$insert->addRow(self::getEndpoint(), [], \"Short description, what users are allowed to do with this permission\", false); + public static function getDescription(): string { + // TODO: auto generated endpoint description + return \"Short description, what users are able to do with this endpoint.\"; } }"; }, $methodNames)); @@ -911,7 +912,6 @@ namespace Site\API { use Core\API\Request; use Core\Objects\Context; - use Core\Driver\SQL\Query\Insert; abstract class {$apiName}API extends Request { public function __construct(Context \$context, bool \$externalCall = false, array \$params = []) { @@ -936,7 +936,6 @@ namespace Site\API; use Core\API\Request; use Core\Objects\Context; -use Core\Driver\SQL\Query\Insert; class $apiName extends Request { @@ -949,9 +948,10 @@ class $apiName extends Request { // TODO: auto-generated method stub return \$this->success; } - - public static function getDefaultACL(Insert \$insert): void { - \$insert->addRow(self::getEndpoint(), [], \"Short description, what users are allowed to do with this permission\", false); + + public static function getDescription(): string { + // TODO: auto generated endpoint description + return \"Short description, what users are able to do with this endpoint.\"; } } ";