[Koha-bugs] [Bug 26625] Add ability to configure mojolicious applications

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 9 09:34:05 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26625

--- Comment #7 from Julian Maurice <julian.maurice at biblibre.com> ---
(In reply to David Cook from comment #5)
> I am fond of Config plugins ( like Catalyst::Plugin::ConfigLoader ),
> although with Catalyst I had the issue where I wanted to access the config
> in the Catalyst config from outside Catalyst for arbitrary non-web config
> items. Not sure how that works with Mojolicious, but with Catalyst I had to
> use Config::JFDI.

The eval command can be used for that: `bin/intranet eval -v 'use JSON;
to_json(app->config)`. Not the most efficient way to read a config file, but at
least it doesn't depend on config file format.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list