rewrite modular logic :D

This commit is contained in:
2024-11-05 21:04:56 +05:00
parent db69904f38
commit eb43d4ad86
5 changed files with 230 additions and 90 deletions

View File

@@ -7,6 +7,9 @@ class BaseModule
public function __construct(
public string $path,
public string $name,
public bool $enabled,
) {}
public ModuleContract $app,
public bool $enabled = false,
) {
$this->enabled = $this->app->isEnabled();
}
}