class Marten::Apps::Registry
- Marten::Apps::Registry
- Reference
- Object
Overview
The applications registry.
The applications registry is responsible for managing all the application config classes of a given project.
Defined in:
marten/apps/registry.crConstructors
Instance Method Summary
-
#app_configs
Returns an array of the available app configs.
-
#get(label : String)
Returns the app config instance for the passed app label.
-
#get_containing(klass)
Returns the application config object contaning the passed class.
- #insert_main_app
-
#populate(installed_apps : Array(Config.class)) : Nil
Populate the app config registry from the list of the project installed apps.
-
#register_model(model : DB::Model.class)
Registers a specific model class to the registry of app configs.
-
#setup
Triggers app config setups.
Constructor Detail
Instance Method Detail
Returns the app config instance for the passed app label.
Raises Marten::Apps::Errors::AppNotFound
if the app config cannot be found.
Populate the app config registry from the list of the project installed apps.
Registers a specific model class to the registry of app configs.
This model will be associated later on to the associated app config once all the app configs of the current project are populated and initialized.