Make BaseModule methods dynamic

This commit is contained in:
Philipp
2021-11-14 23:13:47 +01:00
parent 714f0febc4
commit 489cd0884a
253 changed files with 397 additions and 385 deletions

View File

@@ -33,7 +33,7 @@ class Unimplemented extends BaseApi
/**
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function delete()
public function delete()
{
DI::apiResponse()->unsupported(Router::DELETE);
}
@@ -41,7 +41,7 @@ class Unimplemented extends BaseApi
/**
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function patch()
public function patch()
{
DI::apiResponse()->unsupported(Router::PATCH);
}
@@ -49,7 +49,7 @@ class Unimplemented extends BaseApi
/**
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function post()
public function post()
{
DI::apiResponse()->unsupported(Router::POST);
}
@@ -57,7 +57,7 @@ class Unimplemented extends BaseApi
/**
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function put()
public function put()
{
DI::apiResponse()->unsupported(Router::PUT);
}
@@ -65,7 +65,7 @@ class Unimplemented extends BaseApi
/**
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
*/
public static function rawContent()
public function rawContent()
{
DI::apiResponse()->unsupported(Router::GET);
}