class ModuleLoader (View source)

Module manifest holder

Properties

protected ModuleManifest[] $manifests

Methods

public static 
inst()

No description

public static 
getModule(string $module)

Get module by name from the current manifest.

public
getManifest()

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

public
bool
hasManifest()

Returns true if this class loader has a manifest.

public
pushManifest(ModuleManifest $manifest)

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

public
popManifest()

No description

public
int
countManifests()

Check number of manifests

public
init(bool $includeTests = false, bool $forceRegen = false, array $ignoredCIConfigs = [])

Initialise the module loader

Details

static ModuleLoader inst()

No description

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()

No description

Return Value

ModuleManifest

int countManifests()

Check number of manifests

Return Value

int

init(bool $includeTests = false, bool $forceRegen = false, array $ignoredCIConfigs = [])

Initialise the module loader

Parameters

bool $includeTests
bool $forceRegen
array $ignoredCIConfigs