]> Dogcows Code - chaz/chatty/blob - lib/Chatty.pm
86585269fcadc5748d6a843c745a8a6b2129ea0e
[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 Unicode::Encoding
29 /;
30
31 extends 'Catalyst';
32
33 our $VERSION = '0.01';
34
35 # Configure the application.
36 #
37 # Note that settings in chatty.conf (or other external
38 # configuration file that you set up manually) take precedence
39 # over this when using ConfigLoader. Thus configuration
40 # details given here can function as a default configuration,
41 # with an external configuration file acting as an override for
42 # local deployment.
43
44 __PACKAGE__->config(
45 name => 'Chatty',
46 # Disable deprecated behavior needed by old applications
47 disable_component_resolution_regex_fallback => 1,
48 'Plugin::Authentication' => {
49 default => {
50 class => 'SimpleDB',
51 user_model => 'DB::Account',
52 password_type => 'clear',
53 },
54 },
55 'Plugin::Session' => {
56 flash_to_stash => 1
57 }
58 );
59
60 # Start the application
61 __PACKAGE__->setup();
62
63
64 =head1 NAME
65
66 Chatty - Catalyst based application
67
68 =head1 SYNOPSIS
69
70 script/chatty_server.pl
71
72 =head1 DESCRIPTION
73
74 [enter your description here]
75
76 =head1 SEE ALSO
77
78 L<Chatty::Controller::Root>, L<Catalyst>
79
80 =head1 AUTHOR
81
82 Charles McGarvey
83
84 =head1 LICENSE
85
86 This library is free software. You can redistribute it and/or modify
87 it under the same terms as Perl itself.
88
89 =cut
90
91 1;
This page took 0.035994 seconds and 3 git commands to generate.