Handles all the loading, unloading and management of modules.
package | Core |
---|
exists(string $module) : bool | string
string
The module name
bool
string
Path to the module found, or false if not foundload(string | array $module, string | null $path) : bool
If a path is not given, then 'module_paths' is used. It also accepts an array of modules as the first parameter.
string
array
The module name or array of modules.
string
null
The path to the module
\ModuleNotFoundException |
---|
bool
True on success, False on fail or already loaded.loaded(string | null $module) : bool | array
string
null
The module name or null
bool
array
Whether the module is loaded, or all modulesunload(string $module) : void
string
The module name
$modules : array