Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config file load for custom #167

Open
zoujiaqing opened this issue Oct 10, 2020 · 0 comments
Open

Config file load for custom #167

zoujiaqing opened this issue Oct 10, 2020 · 0 comments

Comments

@zoujiaqing
Copy link
Member

Config files:

config/application.conf
config/custom.conf

Create config class:

module app.config.CustomConfig;

class CustomConfig
{
    // define some config items
}

Get config object:

// Get config/application.conf
auto appConfig = app().config();

// Get config/custom.conf
auto customConfig = app().config!CustomConfig("custom");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant