summaryrefslogtreecommitdiff
path: root/demos/blog/protected/application.xml
blob: 9bca115cd12a99886616e54373e910741640f8ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="utf-8"?>

<application id="personal" mode="Debug">
  <paths>
    <using namespace="Application.Common.*" />
  </paths>
  <!-- modules configured and loaded for all services -->
  <modules>
    <!-- Remove this comment mark to enable caching
    <module id="cache" class="System.Caching.TSqliteCache" />
    -->
    <!-- Remove this comment mark to enable PATH url format
    <module id="request" class="THttpRequest" UrlFormat="Path" />
    -->
    <!--
    <module id="session" class="THttpSession" />
    <module id="log" class="System.Util.TLogRouter">
      <route class="TBrowserLogRoute" />
      <route class="TFileLogRoute" Categories="System" Levels="Notice,Warning,Error,Alert,Fatal" />
    </module>
    -->
    <module class="System.Util.TParameterModule" ParameterFile="Application.Data.Options" />
  </modules>
  <services>
    <!-- page service -->
    <service id="page" class="TPageService" BasePath="Application.Pages" DefaultPage="Posts.ListPost">
      <!-- modules configured and loaded when page service is requested -->
      <modules>
        <!-- user manager module -->
        <module id="users" class="Application.Common.BlogUserManager" />
        <!-- auth manager module -->
        <module id="auth" class="System.Security.TAuthManager" UserManager="users" LoginPage="Posts.ListPost" />
        <module id="data" class="Application.Common.BlogDataModule" />
      </modules>
	  <pages MasterClass="Application.Layouts.MainLayout" Theme="Basic" />
    </service>
  </services>
</application>