]> Dogcows Code - chaz/chatty/blob - lib/Chatty.pm
72353a7ff8c1ce3e0397d13640a6dd4258472993
[chaz/chatty] / lib / Chatty.pm
1 package Chatty;
2 use Moose;
3 use namespace::autoclean;
4
5 use Catalyst::Runtime 5.80;
6
7 # Set flags and add plugins for the application.
8 #
9 # Note that ORDERING IS IMPORTANT here as plugins are initialized in order,
10 # therefore you almost certainly want to keep ConfigLoader at the head of the
11 # list if you're using it.
12 #
13 # -Debug: activates the debug mode for very useful log messages
14 # ConfigLoader: will load the configuration from a Config::General file in the
15 # application's home directory
16 # Static::Simple: will serve static files from the application's root
17 # directory
18
19 use Catalyst qw/
20 -Debug
21 ConfigLoader
22 StackTrace
23 Static::Simple
24 Authentication
25 Session
26 Session::Store::FastMmap
27 Session::State::Cookie
28 /;
29
30 extends 'Catalyst';
31
32 our $VERSION = '0.01';
33
34 # Configure the application.
35 #
36 # Note that settings in chatty.conf (or other external
37 # configuration file that you set up manually) take precedence
38 # over this when using ConfigLoader. Thus configuration
39 # details given here can function as a default configuration,
40 # with an external configuration file acting as an override for
41 # local deployment.
42
43 __PACKAGE__->config(
44 name => 'Chatty',
45 # Disable deprecated behavior needed by old applications
46 disable_component_resolution_regex_fallback => 1,
47 );
48
49 __PACKAGE__->config(
50 'Plugin::Authentication' => {
51 default => {
52 class => 'SimpleDB',
53 user_model => 'DB::Account',
54 password_type => 'clear',
55 },
56 },
57 'Plugin::Session' => {
58 flash_to_stash => 1
59 }
60 );
61
62 # Start the application
63 __PACKAGE__->setup();
64
65
66 =head1 NAME
67
68 Chatty - Catalyst based application
69
70 =head1 SYNOPSIS
71
72 script/chatty_server.pl
73
74 =head1 DESCRIPTION
75
76 [enter your description here]
77
78 =head1 SEE ALSO
79
80 L<Chatty::Controller::Root>, L<Catalyst>
81
82 =head1 AUTHOR
83
84 Charles McGarvey
85
86 =head1 LICENSE
87
88 This library is free software. You can redistribute it and/or modify
89 it under the same terms as Perl itself.
90
91 =cut
92
93 1;
This page took 0.032486 seconds and 3 git commands to generate.