[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:
2021-08-21 22:30:24 +01:00
parent 6ef07e04d1
commit 45734d882c
2 changed files with 3 additions and 3 deletions

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]);
}
/**