Marten::Apps::Registry
The applications registry.
The applications registry is responsible for managing all the application config classes of a given project.
Constructors
new
SourceInstance methods
get(label : String)
Returns the app config instance for the passed app label.
Raises Marten::Apps::Errors::AppNotFound if the app config cannot be found.
get(label : Symbol)
Returns the app config instance for the passed app label.
Raises Marten::Apps::Errors::AppNotFound if the app config cannot be found.
insert_main_app
SourcePopulate 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.
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.