modular composer requirements aborts if missing

This commit is contained in:
2025-10-28 23:03:41 +05:00
parent 6bdc820589
commit 1e9bad12c5
7 changed files with 157 additions and 8 deletions

View File

@@ -46,6 +46,14 @@ function emptyModule(): ModuleContract
return modular()->emptyModule();
}
/**
* Module exists
*/
function module_exists(string $moduleName)
{
return modular()->moduleExists($moduleName);
}
/**
* Create an anonymous class that acts as a dynamic object.
*