System
A bootstrapper that reads configuration and creates backend and frontend containers.
This 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 |
|---|---|---|
$backend | Objects | The backend container |
$config | Properties | The config container |
$frontend | Objects | The frontend container |
$modules | ImmVector<Module> | Instantiated modules |
Constructors / Destructors
| Returns | Signature and Description |
|---|---|
void | __construct()Creates a new System. |
Instance Methods
| Returns | Signature and Description |
|---|---|
Objects | Gets the container with backend classes. |
Properties | Gets the configuration settings container. |
Objects | Gets the container with frontend classes. |
ImmVector<Module> | Gets the loaded modules. |
Property Details
$backend
Objects $backendThe backend container
$config
Inherited from Configuration
Properties $configThe config container
$frontend
Objects $frontendThe frontend container
$modules
Inherited from Configuration
ImmVector<Module> $modulesInstantiated modules
Method Details
__construct
__construct(ConstMap<string,mixed> $config)Creates a new System.
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 |
getBackendContainer
getBackendContainer()Gets the container with backend classes.
| Type | Description |
|---|---|
Objects | The backend container |
getConfigContainer
Inherited from Configuration
getConfigContainer()Gets the configuration settings container.
| Type | Description |
|---|---|
Properties | The config container |
getFrontendContainer
getFrontendContainer()Gets the container with frontend classes.
| Type | Description |
|---|---|
Objects | The frontend container |
getModules
Inherited from Configuration
getModules()Gets the loaded modules.
| Type | Description |
|---|---|
ImmVector<Module> | The loaded modules |