Catalyst::Plugin::ConfigLoader::Manual - Guide to using the ConfigLoader plugin |
Catalyst::Plugin::ConfigLoader::Manual - Guide to using the ConfigLoader plugin
package MyApp; use Catalyst qw( ConfigLoader ... );
MYAPP_CONFIG
- specific config file to load for ``MyApp''CATALYST_CONFIG_LOCAL_SUFFIX
- global suffix for extra config filesMYAPP_CONFIG_LOCAL_SUFFIX
- suffix specifically for ``MyApp''
name = TestApp <Component Controller::Foo> foo bar </Component> <Model Baz> qux xyzzy </Model>
name=TestApp [Controller::Foo] foo=bar [Model::Baz] qux=xyzzy
{ "name": "TestApp", "Controller::Foo": { "foo": "bar" }, "Model::Baz": { "qux": "xyzzy" } }
{ name => 'TestApp', 'Controller::Foo' => { foo => 'bar' }, 'Model::Baz' => { qux => 'xyzzy' } }
<config> <name>TestApp</name> <component name="Controller::Foo"> <foo>bar</foo> </component> <model name="Baz"> <qux>xyzzy</qux> </model> </config>
--- name: TestApp Controller::Foo: foo: bar Model::Baz: qux: xyzzy
Model::MyModel: schema_class: MyApp::MySchema connect_info: - dbi:SQLite:myapp.db - '' - '' - AutoCommit: 1
Catalyst::Plugin::ConfigLoader::Manual - Guide to using the ConfigLoader plugin |