annotate config/Benzin.Web.Application.xml @ 10:83ad674a8cdd

updated styles
author sergey
date Thu, 15 May 2014 01:51:42 +0400
parents fa7a99c2d079
children 573272ec604b
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 <!-- Корневой ресурс -->
0b703449f192 added config
sergey
parents:
diff changeset
26 <resourceFactory>Benzin::Web::Resources::RootResource
0b703449f192 added config
sergey
parents:
diff changeset
27 </resourceFactory>
0b703449f192 added config
sergey
parents:
diff changeset
28 </item>
0b703449f192 added config
sergey
parents:
diff changeset
29
0b703449f192 added config
sergey
parents:
diff changeset
30 <!-- Представления -->
0b703449f192 added config
sergey
parents:
diff changeset
31 <item type="IMPL::Web::Handler::ViewSelector">
0b703449f192 added config
sergey
parents:
diff changeset
32
0b703449f192 added config
sergey
parents:
diff changeset
33 <!-- Используя расширения в именах ресурсов можно форсировать определенный
0b703449f192 added config
sergey
parents:
diff changeset
34 тип представления -->
0b703449f192 added config
sergey
parents:
diff changeset
35 <types type="HASH">
0b703449f192 added config
sergey
parents:
diff changeset
36 <json>application/json</json>
0b703449f192 added config
sergey
parents:
diff changeset
37 <html>text/html</html>
0b703449f192 added config
sergey
parents:
diff changeset
38 </types>
0b703449f192 added config
sergey
parents:
diff changeset
39
0b703449f192 added config
sergey
parents:
diff changeset
40 <!-- Сами представления -->
0b703449f192 added config
sergey
parents:
diff changeset
41 <views type="ARRAY">
0b703449f192 added config
sergey
parents:
diff changeset
42
0b703449f192 added config
sergey
parents:
diff changeset
43 <!-- HTML, используется шаблонизатор -->
0b703449f192 added config
sergey
parents:
diff changeset
44 <item id="html-view" type="IMPL::Web::Handler::TTPresenter">
0b703449f192 added config
sergey
parents:
diff changeset
45 <contentType>text/html</contentType>
0b703449f192 added config
sergey
parents:
diff changeset
46 <contentCharset>utf-8</contentCharset>
0b703449f192 added config
sergey
parents:
diff changeset
47 <options type="HASH">
0b703449f192 added config
sergey
parents:
diff changeset
48 <INCLUDE_PATH type="ARRAY">
0b703449f192 added config
sergey
parents:
diff changeset
49 <item type="IMPL::Config::Reference">
0b703449f192 added config
sergey
parents:
diff changeset
50 <target>IMPL::Config</target>
0b703449f192 added config
sergey
parents:
diff changeset
51 <AppDir>view</AppDir>
0b703449f192 added config
sergey
parents:
diff changeset
52 </item>
0b703449f192 added config
sergey
parents:
diff changeset
53 <item type="IMPL::Config::Reference">
0b703449f192 added config
sergey
parents:
diff changeset
54 <target>IMPL::Config</target>
0b703449f192 added config
sergey
parents:
diff changeset
55 <AppDir>shared_view</AppDir>
0b703449f192 added config
sergey
parents:
diff changeset
56 </item>
0b703449f192 added config
sergey
parents:
diff changeset
57 </INCLUDE_PATH>
0b703449f192 added config
sergey
parents:
diff changeset
58 <INTERPOLATE>1</INTERPOLATE>
0b703449f192 added config
sergey
parents:
diff changeset
59 <POST_CHOMP>1</POST_CHOMP>
0b703449f192 added config
sergey
parents:
diff changeset
60 <ENCODING>utf-8</ENCODING>
0b703449f192 added config
sergey
parents:
diff changeset
61 <COMPILE_DIR>/tmp/ttc</COMPILE_DIR>
0b703449f192 added config
sergey
parents:
diff changeset
62 </options>
0b703449f192 added config
sergey
parents:
diff changeset
63 <includes type='ARRAY'>
0b703449f192 added config
sergey
parents:
diff changeset
64 <item>components</item>
0b703449f192 added config
sergey
parents:
diff changeset
65 </includes>
0b703449f192 added config
sergey
parents:
diff changeset
66 <globals id="globals" type="HASH">
0b703449f192 added config
sergey
parents:
diff changeset
67 <cdn type="IMPL::Config::Include">cdn.xml</cdn>
0b703449f192 added config
sergey
parents:
diff changeset
68 <site type="HASH">
0b703449f192 added config
sergey
parents:
diff changeset
69 <name>ImpLab.org</name>
0b703449f192 added config
sergey
parents:
diff changeset
70 </site>
0b703449f192 added config
sergey
parents:
diff changeset
71 <aliases type="HASH">
0b703449f192 added config
sergey
parents:
diff changeset
72 <form>IMPL::Web::View::TTFormContainer</form>
0b703449f192 added config
sergey
parents:
diff changeset
73 </aliases>
0b703449f192 added config
sergey
parents:
diff changeset
74 </globals>
0b703449f192 added config
sergey
parents:
diff changeset
75 </item>
0b703449f192 added config
sergey
parents:
diff changeset
76
0b703449f192 added config
sergey
parents:
diff changeset
77 <!-- JSON используется преобразование в JSON -->
0b703449f192 added config
sergey
parents:
diff changeset
78 <item type="IMPL::Web::Handler::JSONView">
0b703449f192 added config
sergey
parents:
diff changeset
79 <transform>Benzin::JSON</transform>
0b703449f192 added config
sergey
parents:
diff changeset
80 </item>
0b703449f192 added config
sergey
parents:
diff changeset
81 </views>
0b703449f192 added config
sergey
parents:
diff changeset
82 </item>
0b703449f192 added config
sergey
parents:
diff changeset
83
0b703449f192 added config
sergey
parents:
diff changeset
84 <item type="IMPL::Web::Handler::LocaleHandler">
0b703449f192 added config
sergey
parents:
diff changeset
85 <locales type="ARRAY">
0b703449f192 added config
sergey
parents:
diff changeset
86 <item>ru-RU</item>
0b703449f192 added config
sergey
parents:
diff changeset
87 <item>en-US</item>
0b703449f192 added config
sergey
parents:
diff changeset
88 </locales>
0b703449f192 added config
sergey
parents:
diff changeset
89 <default>en-US</default>
0b703449f192 added config
sergey
parents:
diff changeset
90 </item>
0b703449f192 added config
sergey
parents:
diff changeset
91
0b703449f192 added config
sergey
parents:
diff changeset
92 <item type="Benzin::Web::EnvAuthHandler" />
0b703449f192 added config
sergey
parents:
diff changeset
93 <!-- модуль аутентификации по cookies -->
0b703449f192 added config
sergey
parents:
diff changeset
94
0b703449f192 added config
sergey
parents:
diff changeset
95 <item type="IMPL::Web::Handler::SecureCookie" />
0b703449f192 added config
sergey
parents:
diff changeset
96
0b703449f192 added config
sergey
parents:
diff changeset
97 <!-- Обработчик ошибок, также использует шаблонизатор -->
0b703449f192 added config
sergey
parents:
diff changeset
98 <item type="IMPL::Web::Handler::ErrorHandler">
0b703449f192 added config
sergey
parents:
diff changeset
99 <contentType>text/html</contentType>
0b703449f192 added config
sergey
parents:
diff changeset
100 <view id="tt-view" type="IMPL::Web::View::TTView">
0b703449f192 added config
sergey
parents:
diff changeset
101 <options type="HASH">
0b703449f192 added config
sergey
parents:
diff changeset
102 <INCLUDE_PATH type="ARRAY">
0b703449f192 added config
sergey
parents:
diff changeset
103 <item type="IMPL::Config::Reference">
0b703449f192 added config
sergey
parents:
diff changeset
104 <target>IMPL::Config</target>
0b703449f192 added config
sergey
parents:
diff changeset
105 <AppDir>view</AppDir>
0b703449f192 added config
sergey
parents:
diff changeset
106 </item>
0b703449f192 added config
sergey
parents:
diff changeset
107 <item type="IMPL::Config::Reference">
0b703449f192 added config
sergey
parents:
diff changeset
108 <target>IMPL::Config</target>
0b703449f192 added config
sergey
parents:
diff changeset
109 <AppDir>shared_view</AppDir>
0b703449f192 added config
sergey
parents:
diff changeset
110 </item>
0b703449f192 added config
sergey
parents:
diff changeset
111 </INCLUDE_PATH>
0b703449f192 added config
sergey
parents:
diff changeset
112 <INTERPOLATE>1</INTERPOLATE>
0b703449f192 added config
sergey
parents:
diff changeset
113 <POST_CHOMP>1</POST_CHOMP>
0b703449f192 added config
sergey
parents:
diff changeset
114 <ENCODING>utf-8</ENCODING>
0b703449f192 added config
sergey
parents:
diff changeset
115 <COMPILE_DIR>/tmp/ttc</COMPILE_DIR>
0b703449f192 added config
sergey
parents:
diff changeset
116 </options>
0b703449f192 added config
sergey
parents:
diff changeset
117 <layoutBase>layout</layoutBase>
0b703449f192 added config
sergey
parents:
diff changeset
118 <viewBase>errors</viewBase>
0b703449f192 added config
sergey
parents:
diff changeset
119 <layout>default</layout>
0b703449f192 added config
sergey
parents:
diff changeset
120 <includes type='ARRAY'>
0b703449f192 added config
sergey
parents:
diff changeset
121 <item>includes</item>
0b703449f192 added config
sergey
parents:
diff changeset
122 </includes>
0b703449f192 added config
sergey
parents:
diff changeset
123 <globals refid="globals" />
0b703449f192 added config
sergey
parents:
diff changeset
124 </view>
0b703449f192 added config
sergey
parents:
diff changeset
125 <errors type="HASH">
0b703449f192 added config
sergey
parents:
diff changeset
126 <error extname="500">500</error>
0b703449f192 added config
sergey
parents:
diff changeset
127 <error extname="404">404</error>
0b703449f192 added config
sergey
parents:
diff changeset
128 <error extname="403">403</error>
0b703449f192 added config
sergey
parents:
diff changeset
129 <error extname="401">401</error>
0b703449f192 added config
sergey
parents:
diff changeset
130 </errors>
0b703449f192 added config
sergey
parents:
diff changeset
131 <fallback>500</fallback>
0b703449f192 added config
sergey
parents:
diff changeset
132 </item>
0b703449f192 added config
sergey
parents:
diff changeset
133 </handlers>
0b703449f192 added config
sergey
parents:
diff changeset
134 </Application>