\Charcoal\App\ModuleModuleManager

q

Summary

Methods
Properties
Constants
setApp()
__construct()
setModules()
addModule()
setupModules()
No public properties found
No constants found
app()
setModuleFactory()
moduleFactory()
No protected properties found
N/A
No private methods found
$app
$modules
$moduleFactory
N/A

Properties

$modules

$modules : array

Type

array

$moduleFactory

$moduleFactory : \Charcoal\Factory\FactoryInterface

Type

\Charcoal\Factory\FactoryInterface

Methods

__construct()

__construct(array  $data) 

Manager constructor

Parameters

array $data

The dependencies container.

setModules()

setModules(array  $modules) : \Charcoal\App\Module\ModuleManager

Parameters

array $modules

The list of modules to add.

Returns

\Charcoal\App\Module\ModuleManager

Chainable

addModule()

addModule(string  $moduleIdent, array|\Charcoal\App\Module\ConfigInterface  $moduleConfig) : \Charcoal\App\Module\ModuleManager

Parameters

string $moduleIdent

The module identifier.

array|\Charcoal\App\Module\ConfigInterface $moduleConfig

The module configuration data.

Returns

\Charcoal\App\Module\ModuleManager

Chainable

setupModules()

setupModules() : void

setModuleFactory()

setModuleFactory(\Charcoal\Factory\FactoryInterface  $factory) : \Charcoal\App\Module\ModuleManager

Parameters

\Charcoal\Factory\FactoryInterface $factory

The Module Factory to create module instances.

Returns

\Charcoal\App\Module\ModuleManager

Chainable

moduleFactory()

moduleFactory() : \Charcoal\Factory\FactoryInterface

Returns

\Charcoal\Factory\FactoryInterface