class

Marten::Apps::Registry

Inherits Reference / Object

The applications registry.

The applications registry is responsible for managing all the application config classes of a given project.

Constructors

Instance methods

app_configs

Returns an array of the available app configs.

Source
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.

Source
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.

Source
get_containing(klass)

Returns the application config object contaning the passed class.

Source
insert_main_app
Source
main

Returns the main application config, which corresponds to the standard src/ folder.

Source
populate(installed_apps : Array(Config.class)) : Nil

Populate the app config registry from the list of the project installed apps.

Source
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.

Source
setup

Triggers app config setups.

Source