$container
$container : \LiftKit\DependencyInjection\Container\Container
Dependency Injection container
Module Class
Represents a LiftKit module. Each module represents a distinct piece of functionality. The module object is responsible for initializing resources before a Request is routed. It is recommended at each module be packaged with related Models, Controllers, etc in its own repository.
createSubModule(string $className) : \LiftKit\Module\Module
This method accepts a fully-qualified class name and creates it.
| string | $className | Fully-qualified class name |
addSubModule(string $moduleKey, \LiftKit\Module\Module $module)
Attaches a Module as a sub module. May be referenced in the future by the module key.
| string | $moduleKey | A string identifier for future references to the sub module. |
| \LiftKit\Module\Module | $module | The Module to be attached |
| api |
|---|
getSubModules() : array<mixed,\LiftKit\Module\Module>
Returns an array of all sub-modules.
| api |
|---|
getSubModule( $moduleKey) : \LiftKit\Module\Module
Returns a single sub-module identified by $moduleKey.
| $moduleKey | String identifier of module. |
| api |
|---|