modular composer requirements aborts if missing
This commit is contained in:
@@ -126,4 +126,14 @@ class ModuleRepository
|
||||
{
|
||||
return $this->allModules;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if module exists
|
||||
*
|
||||
* @param string $moduleName
|
||||
*/
|
||||
public function moduleExists(string $moduleName): bool
|
||||
{
|
||||
return $this->modules->contains(fn (BaseModule $module) => $module->name === $moduleName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user