Fixed API-Stub generation in cli.php
This commit is contained in:
parent
d38ad87220
commit
163ef9fbfe
14
cli.php
14
cli.php
@ -900,8 +900,9 @@ function onAPI(array $argv): void {
|
|||||||
return \$this->success;
|
return \$this->success;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getDefaultACL(Insert \$insert): void {
|
public static function getDescription(): string {
|
||||||
\$insert->addRow(self::getEndpoint(), [], \"Short description, what users are allowed to do with this permission\", false);
|
// TODO: auto generated endpoint description
|
||||||
|
return \"Short description, what users are able to do with this endpoint.\";
|
||||||
}
|
}
|
||||||
}";
|
}";
|
||||||
}, $methodNames));
|
}, $methodNames));
|
||||||
@ -911,7 +912,6 @@ namespace Site\API {
|
|||||||
|
|
||||||
use Core\API\Request;
|
use Core\API\Request;
|
||||||
use Core\Objects\Context;
|
use Core\Objects\Context;
|
||||||
use Core\Driver\SQL\Query\Insert;
|
|
||||||
|
|
||||||
abstract class {$apiName}API extends Request {
|
abstract class {$apiName}API extends Request {
|
||||||
public function __construct(Context \$context, bool \$externalCall = false, array \$params = []) {
|
public function __construct(Context \$context, bool \$externalCall = false, array \$params = []) {
|
||||||
@ -936,7 +936,6 @@ namespace Site\API;
|
|||||||
|
|
||||||
use Core\API\Request;
|
use Core\API\Request;
|
||||||
use Core\Objects\Context;
|
use Core\Objects\Context;
|
||||||
use Core\Driver\SQL\Query\Insert;
|
|
||||||
|
|
||||||
class $apiName extends Request {
|
class $apiName extends Request {
|
||||||
|
|
||||||
@ -949,9 +948,10 @@ class $apiName extends Request {
|
|||||||
// TODO: auto-generated method stub
|
// TODO: auto-generated method stub
|
||||||
return \$this->success;
|
return \$this->success;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getDefaultACL(Insert \$insert): void {
|
public static function getDescription(): string {
|
||||||
\$insert->addRow(self::getEndpoint(), [], \"Short description, what users are allowed to do with this permission\", false);
|
// TODO: auto generated endpoint description
|
||||||
|
return \"Short description, what users are able to do with this endpoint.\";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
";
|
";
|
||||||
|
Loading…
Reference in New Issue
Block a user