ModuleLoader
class ModuleLoader (View source)
Module manifest holder
Properties
protected | ModuleManifest[] | $manifests |
Methods
public
getManifest()
Returns the currently active class manifest instance that is used for loading classes.
public
Details
static ModuleLoader
inst()
No description
static Module
getModule(string $module)
Get module by name from the current manifest.
Alias for ::inst()->getManifest()->getModule()
ModuleManifest
getManifest()
Returns the currently active class manifest instance that is used for loading classes.
bool
hasManifest()
Returns true if this class loader has a manifest.
pushManifest(ModuleManifest $manifest)
Pushes a module manifest instance onto the top of the stack.
ModuleManifest
popManifest()
No description
int
countManifests()
Check number of manifests
init(bool $includeTests = false, bool $forceRegen = false)
Initialise the module loader