8bbda311e180c5f85a071d0d4dc19322137b5307
[catagits/Catalyst-Authentication-Store-LDAP.git] / Test-Session-Broken / lib / Test / LDAP.pm
1 package Test::LDAP;
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 #         -Debug: activates the debug mode for very useful log messages
10 #   ConfigLoader: will load the configuration from a Config::General file in the
11 #                 application's home directory
12 # Static::Simple: will serve static files from the application's root
13 #                 directory
14
15 use Catalyst qw/
16     -Debug
17     ConfigLoader
18     Static::Simple
19     
20     Authentication
21     Authorization::Roles
22     Session
23     Session::State::Cookie
24     Session::Store::FastMmap
25 /;
26
27 extends 'Catalyst';
28
29 our $VERSION = '0.01';
30 $VERSION = eval $VERSION;
31
32 # Configure the application.
33 #
34 # Note that settings in test_ldap_web.conf (or other external
35 # configuration file that you set up manually) take precedence
36 # over this when using ConfigLoader. Thus configuration
37 # details given here can function as a default configuration,
38 # with an external configuration file acting as an override for
39 # local deployment.
40
41 __PACKAGE__->config(
42     # Disable deprecated behavior needed by old applications
43     disable_component_resolution_regex_fallback => 1,
44
45     'Plugin::ConfigLoader' => { file => 'config.json' },
46 );
47
48 # Start the application
49 __PACKAGE__->setup();
50
51
52 =head1 NAME
53
54 Test::LDAP - Catalyst based application
55
56 =head1 SYNOPSIS
57
58     script/test_ldap_web_server.pl
59
60 =head1 DESCRIPTION
61
62 [enter your description here]
63
64 =head1 SEE ALSO
65
66 L<Test::LDAP::Controller::Root>, L<Catalyst>
67
68 =head1 AUTHOR
69
70 root
71
72 =head1 LICENSE
73
74 This library is free software. You can redistribute it and/or modify
75 it under the same terms as Perl itself.
76
77 =cut
78
79 1;