[MODULES] Add module configuration

This commit is contained in:
2021-08-12 00:24:25 +01:00
committed by Hugo Sales
parent de8a2f579c
commit 508f1f8796
2 changed files with 38 additions and 0 deletions

View File

@@ -33,6 +33,14 @@ use Symfony\Component\HttpFoundation\Request;
*/
abstract class Module
{
public function __construct()
{
// Load Module settings
foreach (Common::config(static::class) as $aname => $avalue) {
$this->{$aname} = $avalue;
}
}
/**
* Serialize the class to store in the cache
*