mirror of
https://github.com/friendica/friendica
synced 2025-04-19 13:50:15 +00:00
Make BaseModule methods dynamic
This commit is contained in:
parent
714f0febc4
commit
489cd0884a
253 changed files with 397 additions and 385 deletions
|
@ -53,7 +53,7 @@ class BaseApi extends BaseModule
|
|||
*/
|
||||
protected static $request = [];
|
||||
|
||||
public static function delete()
|
||||
public function delete()
|
||||
{
|
||||
self::checkAllowedScope(self::SCOPE_WRITE);
|
||||
|
||||
|
@ -62,7 +62,7 @@ class BaseApi extends BaseModule
|
|||
}
|
||||
}
|
||||
|
||||
public static function patch()
|
||||
public function patch()
|
||||
{
|
||||
self::checkAllowedScope(self::SCOPE_WRITE);
|
||||
|
||||
|
@ -71,7 +71,7 @@ class BaseApi extends BaseModule
|
|||
}
|
||||
}
|
||||
|
||||
public static function post()
|
||||
public function post()
|
||||
{
|
||||
self::checkAllowedScope(self::SCOPE_WRITE);
|
||||
|
||||
|
@ -80,7 +80,7 @@ class BaseApi extends BaseModule
|
|||
}
|
||||
}
|
||||
|
||||
public static function put()
|
||||
public function put()
|
||||
{
|
||||
self::checkAllowedScope(self::SCOPE_WRITE);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue