mirror of
https://github.com/friendica/friendica
synced 2025-04-23 15:50:25 +00:00
Make BaseModule methods dynamic
This commit is contained in:
parent
714f0febc4
commit
489cd0884a
253 changed files with 397 additions and 385 deletions
|
@ -54,22 +54,22 @@ class LegacyModule extends BaseModule
|
|||
require_once $file_path;
|
||||
}
|
||||
|
||||
public static function init()
|
||||
public function init()
|
||||
{
|
||||
self::runModuleFunction('init', static::$parameters);
|
||||
}
|
||||
|
||||
public static function content()
|
||||
public function content(): string
|
||||
{
|
||||
return self::runModuleFunction('content', static::$parameters);
|
||||
}
|
||||
|
||||
public static function post()
|
||||
public function post()
|
||||
{
|
||||
self::runModuleFunction('post', static::$parameters);
|
||||
}
|
||||
|
||||
public static function afterpost()
|
||||
public function afterpost()
|
||||
{
|
||||
self::runModuleFunction('afterpost', static::$parameters);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue