ModuleLoader
class ModuleLoader (View source)
Module manifest holder
Methods
static ModuleLoader
inst()
No description
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.
popManifest()
No description
int
countManifests()
Check number of manifests
init(bool $includeTests = false, bool $forceRegen = false)
Initialise the module loader
Details
static ModuleLoader
inst()
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()
int
countManifests()
Check number of manifests
init(bool $includeTests = false, bool $forceRegen = false)
Initialise the module loader