rewrite modular logic :D
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user