annotate config/Benzin.Web.Application.xml @ 16:e69c970c3ddd default tip

sync
author sergey
date Tue, 20 May 2014 01:28:48 +0400
parents 573272ec604b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
0b703449f192 added config
sergey
parents:
diff changeset
1 <?xml version='1.0' encoding='utf-8'?>
0b703449f192 added config
sergey
parents:
diff changeset
2 <Application id="app" type="Benzin::Web::Application">
0b703449f192 added config
sergey
parents:
diff changeset
3 <requestCharset>utf-8</requestCharset>
0b703449f192 added config
sergey
parents:
diff changeset
4 <securityFactory type="IMPL::Object::Factory">
0b703449f192 added config
sergey
parents:
diff changeset
5 <factory>IMPL::Config</factory>
0b703449f192 added config
sergey
parents:
diff changeset
6 <method>spawn</method>
0b703449f192 added config
sergey
parents:
diff changeset
7 <parameters>security.xml</parameters>
0b703449f192 added config
sergey
parents:
diff changeset
8 </securityFactory>
0b703449f192 added config
sergey
parents:
diff changeset
9 <connections type="HASH">
0b703449f192 added config
sergey
parents:
diff changeset
10 <doxLibrary type="HASH">
7
fa7a99c2d079 dox library templates and schemas
sergey
parents: 5
diff changeset
11 <dsn>DBI:mysql:database=test;host=localhost;mysql_socket=/tmp/mysql-implab.sock;mysql_enable_utf8=1
5
0b703449f192 added config
sergey
parents:
diff changeset
12 </dsn>
0b703449f192 added config
sergey
parents:
diff changeset
13 <user>root</user>
0b703449f192 added config
sergey
parents:
diff changeset
14 <password />
0b703449f192 added config
sergey
parents:
diff changeset
15 <AutoCommit>1</AutoCommit>
0b703449f192 added config
sergey
parents:
diff changeset
16 <mysql_enable_utf8>1</mysql_enable_utf8>
0b703449f192 added config
sergey
parents:
diff changeset
17 <on_connect_do>set names utf8</on_connect_do>
0b703449f192 added config
sergey
parents:
diff changeset
18 </doxLibrary>
0b703449f192 added config
sergey
parents:
diff changeset
19 </connections>
0b703449f192 added config
sergey
parents:
diff changeset
20 <handlers type="ARRAY">
0b703449f192 added config
sergey
parents:
diff changeset
21
0b703449f192 added config
sergey
parents:
diff changeset
22 <!-- Настройка контроллера для вызова методов предметной области -->
0b703449f192 added config
sergey
parents:
diff changeset
23 <item type="IMPL::Web::Handler::RestController">
0b703449f192 added config
sergey
parents:
diff changeset
24
0b703449f192 added config
sergey
parents:
diff changeset
25 <!-- Корневой ресурс -->
11
573272ec604b almost comlete doxygen library
sergey
parents: 7
diff changeset
26 <resourceFactory>Implab::Web::Resources::Root</resourceFactory>
5
0b703449f192 added config
sergey
parents:
diff changeset
27 </item>
0b703449f192 added config
sergey
parents:
diff changeset
28
0b703449f192 added config
sergey
parents:
diff changeset
29 <!-- Представления -->
0b703449f192 added config
sergey
parents:
diff changeset
30 <item type="IMPL::Web::Handler::ViewSelector">
0b703449f192 added config
sergey
parents:
diff changeset
31
0b703449f192 added config
sergey
parents:
diff changeset
32 <!-- Используя расширения в именах ресурсов можно форсировать определенный
0b703449f192 added config
sergey
parents:
diff changeset
33 тип представления -->
0b703449f192 added config
sergey
parents:
diff changeset
34 <types type="HASH">
0b703449f192 added config
sergey
parents:
diff changeset
35 <json>application/json</json>
0b703449f192 added config
sergey
parents:
diff changeset
36 <html>text/html</html>
0b703449f192 added config
sergey
parents:
diff changeset
37 </types>
0b703449f192 added config
sergey
parents:
diff changeset
38
0b703449f192 added config
sergey
parents:
diff changeset
39 <!-- Сами представления -->
0b703449f192 added config
sergey
parents:
diff changeset
40 <views type="ARRAY">
0b703449f192 added config
sergey
parents:
diff changeset
41
0b703449f192 added config
sergey
parents:
diff changeset
42 <!-- HTML, используется шаблонизатор -->
0b703449f192 added config
sergey
parents:
diff changeset
43 <item id="html-view" type="IMPL::Web::Handler::TTPresenter">
0b703449f192 added config
sergey
parents:
diff changeset
44 <contentType>text/html</contentType>
0b703449f192 added config
sergey
parents:
diff changeset
45 <contentCharset>utf-8</contentCharset>
0b703449f192 added config
sergey
parents:
diff changeset
46 <options type="HASH">
0b703449f192 added config
sergey
parents:
diff changeset
47 <INCLUDE_PATH type="ARRAY">
0b703449f192 added config
sergey
parents:
diff changeset
48 <item type="IMPL::Config::Reference">
0b703449f192 added config
sergey
parents:
diff changeset
49 <target>IMPL::Config</target>
0b703449f192 added config
sergey
parents:
diff changeset
50 <AppDir>view</AppDir>
0b703449f192 added config
sergey
parents:
diff changeset
51 </item>
0b703449f192 added config
sergey
parents:
diff changeset
52 <item type="IMPL::Config::Reference">
0b703449f192 added config
sergey
parents:
diff changeset
53 <target>IMPL::Config</target>
0b703449f192 added config
sergey
parents:
diff changeset
54 <AppDir>shared_view</AppDir>
0b703449f192 added config
sergey
parents:
diff changeset
55 </item>
0b703449f192 added config
sergey
parents:
diff changeset
56 </INCLUDE_PATH>
0b703449f192 added config
sergey
parents:
diff changeset
57 <INTERPOLATE>1</INTERPOLATE>
0b703449f192 added config
sergey
parents:
diff changeset
58 <POST_CHOMP>1</POST_CHOMP>
0b703449f192 added config
sergey
parents:
diff changeset
59 <ENCODING>utf-8</ENCODING>
0b703449f192 added config
sergey
parents:
diff changeset
60 <COMPILE_DIR>/tmp/ttc</COMPILE_DIR>
0b703449f192 added config
sergey
parents:
diff changeset
61 </options>
0b703449f192 added config
sergey
parents:
diff changeset
62 <includes type='ARRAY'>
11
573272ec604b almost comlete doxygen library
sergey
parents: 7
diff changeset
63 <item>includes</item>
5
0b703449f192 added config
sergey
parents:
diff changeset
64 </includes>
0b703449f192 added config
sergey
parents:
diff changeset
65 <globals id="globals" type="HASH">
0b703449f192 added config
sergey
parents:
diff changeset
66 <cdn type="IMPL::Config::Include">cdn.xml</cdn>
0b703449f192 added config
sergey
parents:
diff changeset
67 <site type="HASH">
0b703449f192 added config
sergey
parents:
diff changeset
68 <name>ImpLab.org</name>
0b703449f192 added config
sergey
parents:
diff changeset
69 </site>
0b703449f192 added config
sergey
parents:
diff changeset
70 <aliases type="HASH">
0b703449f192 added config
sergey
parents:
diff changeset
71 <form>IMPL::Web::View::TTFormContainer</form>
0b703449f192 added config
sergey
parents:
diff changeset
72 </aliases>
0b703449f192 added config
sergey
parents:
diff changeset
73 </globals>
0b703449f192 added config
sergey
parents:
diff changeset
74 </item>
0b703449f192 added config
sergey
parents:
diff changeset
75
0b703449f192 added config
sergey
parents:
diff changeset
76 <!-- JSON используется преобразование в JSON -->
0b703449f192 added config
sergey
parents:
diff changeset
77 <item type="IMPL::Web::Handler::JSONView">
0b703449f192 added config
sergey
parents:
diff changeset
78 <transform>Benzin::JSON</transform>
0b703449f192 added config
sergey
parents:
diff changeset
79 </item>
0b703449f192 added config
sergey
parents:
diff changeset
80 </views>
0b703449f192 added config
sergey
parents:
diff changeset
81 </item>
0b703449f192 added config
sergey
parents:
diff changeset
82
0b703449f192 added config
sergey
parents:
diff changeset
83 <item type="IMPL::Web::Handler::LocaleHandler">
0b703449f192 added config
sergey
parents:
diff changeset
84 <locales type="ARRAY">
0b703449f192 added config
sergey
parents:
diff changeset
85 <item>ru-RU</item>
0b703449f192 added config
sergey
parents:
diff changeset
86 <item>en-US</item>
0b703449f192 added config
sergey
parents:
diff changeset
87 </locales>
0b703449f192 added config
sergey
parents:
diff changeset
88 <default>en-US</default>
0b703449f192 added config
sergey
parents:
diff changeset
89 </item>
0b703449f192 added config
sergey
parents:
diff changeset
90
0b703449f192 added config
sergey
parents:
diff changeset
91 <item type="Benzin::Web::EnvAuthHandler" />
0b703449f192 added config
sergey
parents:
diff changeset
92 <!-- модуль аутентификации по cookies -->
0b703449f192 added config
sergey
parents:
diff changeset
93
0b703449f192 added config
sergey
parents:
diff changeset
94 <item type="IMPL::Web::Handler::SecureCookie" />
0b703449f192 added config
sergey
parents:
diff changeset
95
0b703449f192 added config
sergey
parents:
diff changeset
96 <!-- Обработчик ошибок, также использует шаблонизатор -->
0b703449f192 added config
sergey
parents:
diff changeset
97 <item type="IMPL::Web::Handler::ErrorHandler">
0b703449f192 added config
sergey
parents:
diff changeset
98 <contentType>text/html</contentType>
0b703449f192 added config
sergey
parents:
diff changeset
99 <view id="tt-view" type="IMPL::Web::View::TTView">
0b703449f192 added config
sergey
parents:
diff changeset
100 <options type="HASH">
0b703449f192 added config
sergey
parents:
diff changeset
101 <INCLUDE_PATH type="ARRAY">
0b703449f192 added config
sergey
parents:
diff changeset
102 <item type="IMPL::Config::Reference">
0b703449f192 added config
sergey
parents:
diff changeset
103 <target>IMPL::Config</target>
0b703449f192 added config
sergey
parents:
diff changeset
104 <AppDir>view</AppDir>
0b703449f192 added config
sergey
parents:
diff changeset
105 </item>
0b703449f192 added config
sergey
parents:
diff changeset
106 <item type="IMPL::Config::Reference">
0b703449f192 added config
sergey
parents:
diff changeset
107 <target>IMPL::Config</target>
0b703449f192 added config
sergey
parents:
diff changeset
108 <AppDir>shared_view</AppDir>
0b703449f192 added config
sergey
parents:
diff changeset
109 </item>
0b703449f192 added config
sergey
parents:
diff changeset
110 </INCLUDE_PATH>
0b703449f192 added config
sergey
parents:
diff changeset
111 <INTERPOLATE>1</INTERPOLATE>
0b703449f192 added config
sergey
parents:
diff changeset
112 <POST_CHOMP>1</POST_CHOMP>
0b703449f192 added config
sergey
parents:
diff changeset
113 <ENCODING>utf-8</ENCODING>
0b703449f192 added config
sergey
parents:
diff changeset
114 <COMPILE_DIR>/tmp/ttc</COMPILE_DIR>
0b703449f192 added config
sergey
parents:
diff changeset
115 </options>
0b703449f192 added config
sergey
parents:
diff changeset
116 <layoutBase>layout</layoutBase>
0b703449f192 added config
sergey
parents:
diff changeset
117 <viewBase>errors</viewBase>
0b703449f192 added config
sergey
parents:
diff changeset
118 <layout>default</layout>
0b703449f192 added config
sergey
parents:
diff changeset
119 <includes type='ARRAY'>
0b703449f192 added config
sergey
parents:
diff changeset
120 <item>includes</item>
0b703449f192 added config
sergey
parents:
diff changeset
121 </includes>
0b703449f192 added config
sergey
parents:
diff changeset
122 <globals refid="globals" />
0b703449f192 added config
sergey
parents:
diff changeset
123 </view>
0b703449f192 added config
sergey
parents:
diff changeset
124 <errors type="HASH">
0b703449f192 added config
sergey
parents:
diff changeset
125 <error extname="500">500</error>
0b703449f192 added config
sergey
parents:
diff changeset
126 <error extname="404">404</error>
0b703449f192 added config
sergey
parents:
diff changeset
127 <error extname="403">403</error>
0b703449f192 added config
sergey
parents:
diff changeset
128 <error extname="401">401</error>
0b703449f192 added config
sergey
parents:
diff changeset
129 </errors>
0b703449f192 added config
sergey
parents:
diff changeset
130 <fallback>500</fallback>
0b703449f192 added config
sergey
parents:
diff changeset
131 </item>
0b703449f192 added config
sergey
parents:
diff changeset
132 </handlers>
0b703449f192 added config
sergey
parents:
diff changeset
133 </Application>