1Catalyst::Plugin::ConfiUgsLeoradCeorn:t:rMiabnuutaeldC(a3Pt)earllysDto:c:uPmleungtiant:i:oCnonfigLoader::Manual(3)
2
3
4
6 Catalyst::Plugin::ConfigLoader::Manual - Guide to using the Con‐
7 figLoader plugin
8
10 package MyApp;
11
12 use Catalyst qw( ConfigLoader ... );
13
15 * "MYAPP_CONFIG" - specific config file to load for "MyApp"
16 * "CATALYST_CONFIG_LOCAL_SUFFIX" - global suffix for extra config files
17 * "MYAPP_CONFIG_LOCAL_SUFFIX" - suffix specifically for "MyApp"
18
20 Config::General
21
22 Extensions
23
24 * cnf
25 * conf
26
27 Example Config
28
29 name = TestApp
30 <Component Controller::Foo>
31 foo bar
32 </Component>
33 <Model Baz>
34 qux xyzzy
35 </Model>
36
37 INI
38
39 Extensions
40
41 * ini
42
43 Example Config
44
45 name=TestApp
46
47 [Controller::Foo]
48 foo=bar
49
50 [Model::Baz]
51 qux=xyzzy
52
53 JSON
54
55 Extensions
56
57 * jsn
58 * json
59
60 Example Config
61
62 {
63 "name": "TestApp",
64 "Controller::Foo": {
65 "foo": "bar"
66 },
67 "Model::Baz": {
68 "qux": "xyzzy"
69 }
70 }
71
72 Perl
73
74 Extensions
75
76 * pl
77 * perl
78
79 Example Config
80
81 {
82 name => 'TestApp',
83 'Controller::Foo' => {
84 foo => 'bar'
85 },
86 'Model::Baz' => {
87 qux => 'xyzzy'
88 }
89 }
90
91 XML
92
93 Extensions
94
95 * xml
96
97 Example Config
98
99 <config>
100 <name>TestApp</name>
101 <component name="Controller::Foo">
102 <foo>bar</foo>
103 </component>
104 <model name="Baz">
105 <qux>xyzzy</qux>
106 </model>
107 </config>
108
109 YAML
110
111 Extensions
112
113 * yml
114 * yaml
115
116 Example Config
117
118 ---
119 name: TestApp
120 Controller::Foo:
121 foo: bar
122 Model::Baz:
123 qux: xyzzy
124
126 Configuring a Catalyst::Model::DBIC::Schema model from a YAML config
127
128 Model::MyModel:
129 schema_class: MyApp::MySchema
130 connect_info:
131 - dbi:SQLite:myapp.db
132 - ''
133 - ''
134 - AutoCommit: 1
135
136
137
138perl v5.8.8 2006C-a1t2a-l1y4st::Plugin::ConfigLoader::Manual(3)