Module
Interface for system module.
Instance Methods
| Returns | Signature and Description |
|---|---|
ImmMap<string,mixed> | Gets static configuration settings. |
ImmMap<string,string> | getMeta()Gets the module metadata. |
void | setupBackend(, )Allows the module to register classes in the backend container. |
void | setupFrontend(, )Allows the module to register classes in the frontend container. |
Method Details
getConfig
getConfig()Gets static configuration settings.
| Type | Description |
|---|---|
ImmMap<string,mixed> | The module configuration settings |
getMeta
getMeta()Gets the module metadata.
This array should contain at the very least the keys name, version,
author, and description. Feel free to add any additional fields you
like, such as license, or copyright.
| Type | Description |
|---|---|
ImmMap<string,string> | A Map of the module metadata |
setupBackend
setupBackend(Builder $builder, Properties $properties)Allows the module to register classes in the backend container.
This method must only invoke the eager, lazy, and proto methods. It
should not attempt to build the container.
| Name | Type | Description |
|---|---|---|
$builder | Builder | The backend dependency injection container |
$properties | Properties | The configuration settings |
setupFrontend
setupFrontend(Builder $builder, Properties $properties)Allows the module to register classes in the frontend container.
This method must only invoke the eager, lazy, and proto methods. It
should not attempt to build the container.
| Name | Type | Description |
|---|---|---|
$builder | Builder | The frontend dependency injection container |
$properties | Properties | The configuration settings |