forked from GNUsocial/gnu-social
[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:
parent
6ef07e04d1
commit
45734d882c
@ -179,7 +179,7 @@ class GNUsocial implements EventSubscriberInterface
|
||||
|
||||
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->initialized = true;
|
||||
|
@ -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]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user