[CONFIG] Make it possible to write module configuration in a config.{php,yml,yaml,xml} file and set each value as properties in the module object

This commit is contained in:
Hugo Sales 2021-08-21 22:30:24 +01:00
parent 6ef07e04d1
commit 45734d882c
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 3 additions and 3 deletions

View File

@ -179,7 +179,7 @@ class GNUsocial implements EventSubscriberInterface
DB::initTableMap(); DB::initTableMap();
// Events are proloaded on compilation, but set at runtime // Events are preloaded on compilation, but set at runtime, along with configuration
$this->module_manager->loadModules(); $this->module_manager->loadModules();
$this->initialized = true; $this->initialized = true;

View File

@ -42,9 +42,9 @@ abstract class Module
} }
} }
public function name(): string public static function name()
{ {
return Formatting::camelCaseToSnakeCase(explode('\\', static::class)[2]); return mb_strtolower(explode('\\', static::class)[2]);
} }
/** /**