class ModuleLoader (View source)

Module manifest holder

Methods

static ModuleLoader
inst()

No description

static Module
getModule(string $module)

Get module by name from the current manifest.

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.

popManifest()

No description

int
countManifests()

Check number of manifests

init(bool $includeTests = false, bool $forceRegen = false)

Initialise the module loader

Details

static ModuleLoader inst()

Return Value

ModuleLoader

static Module getModule(string $module)

Get module by name from the current manifest.

Alias for ::inst()->getManifest()->getModule()

Parameters

string $module

Return Value

Module

ModuleManifest getManifest()

Returns the currently active class manifest instance that is used for loading classes.

Return Value

ModuleManifest

bool hasManifest()

Returns true if this class loader has a manifest.

Return Value

bool

pushManifest(ModuleManifest $manifest)

Pushes a module manifest instance onto the top of the stack.

Parameters

ModuleManifest $manifest

ModuleManifest popManifest()

Return Value

ModuleManifest

int countManifests()

Check number of manifests

Return Value

int

init(bool $includeTests = false, bool $forceRegen = false)

Initialise the module loader

Parameters

bool $includeTests
bool $forceRegen