Configuration
A bootstrapper for reading in module and configuration info.
class ConfigurationThis class expects a Traversable full of class names in the
system.modules configuration setting. Each class name must extend
Labrys\Module or an UnexpectedValueException will be thrown.
- Copyright
- 2015-2016 Appertly
- Since
- 0.5.0
- License
- Apache-2.0
Instance Properties
| Name | Type | Summary |
|---|---|---|
$config | Properties | The config container |
$modules | ImmVector<Module> | Instantiated modules |
Constructors / Destructors
| Returns | Signature and Description |
|---|---|
void | __construct()Creates a new Configuration. |
Instance Methods
| Returns | Signature and Description |
|---|---|
Properties | Gets the configuration settings container. |
ImmVector<Module> | Gets the loaded modules. |
Property Details
$config
Properties $configThe config container
$modules
ImmVector<Module> $modulesInstantiated modules
Method Details
__construct
__construct(ConstMap<string,mixed> $config)Creates a new Configuration.
This constructor expects a Traversable full of class names in the
system.modules configuration setting. Each class name must extend
Labrys\Module or an UnexpectedValueException will be thrown.
| Name | Type | Description |
|---|---|---|
$config | ConstMap<string,mixed> | The system configuration |
| Type | Conditions |
|---|---|
UnexpectedValueException | if a module class doesn't extend |
getConfigContainer
getConfigContainer()Gets the configuration settings container.
| Type | Description |
|---|---|
Properties | The config container |
getModules
getModules()Gets the loaded modules.
| Type | Description |
|---|---|
ImmVector<Module> | The loaded modules |