tutorial/lib/MyApp.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« example/lib/MyApp/View/TT.pm ↑ Summary tutorial/lib/MyApp/Controller/API.pm »
1 #
2 # This file is part of CatalystX-ExtJS
3 #
4 # This software is Copyright (c) 2011 by Moritz Onken.
5 #
6 # This is free software, licensed under:
7 #
8 # The (three-clause) BSD License
9 #
10 package MyApp;
11 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 ▶use Catalyst::Runtime 5.80;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 # Set flags and add plugins for the application
17 #
18 # -Debug: activates the debug mode for very useful log messages
19 # ConfigLoader: will load the configuration from a Config::General file in the
20 # application's home directory
21 # Static::Simple: will serve static files from the application's root
22 # directory
23  
24 1 ▶use Catalyst qw/
Subroutine BEGIN: called CC=1 SCAR=0.0
25 -Debug
26 ConfigLoader
27 Static::Simple
28 Unicode
29 1 /;
30  
31 1 extends 'Catalyst';
32  
33 1 our $VERSION = '0.01';
34 1 $VERSION = eval $VERSION;
35  
36 # Configure the application.
37 #
38 # Note that settings in myapp.conf (or other external
39 # configuration file that you set up manually) take precedence
40 # over this when using ConfigLoader. Thus configuration
41 # details given here can function as a default configuration,
42 # with an external configuration file acting as an override for
43 # local deployment.
44  
45 1 __PACKAGE__->config(
46 name => 'MyApp',
47 # Disable deprecated behavior needed by old applications
48 disable_component_resolution_regex_fallback => 1,
49 );
50  
51 # Start the application
52 1 __PACKAGE__->setup();
53  
54  
55 =head1 NAME
56  
57 MyApp - Catalyst based application
58  
59 =head1 SYNOPSIS
60  
61 script/myapp_server.pl
62  
63 =head1 DESCRIPTION
64  
65 [enter your description here]
66  
67 =head1 SEE ALSO
68  
69 L<MyApp::Controller::Root>, L<Catalyst>
70  
71 =head1 AUTHOR
72  
73 Catalyst developer
74  
75 =head1 LICENSE
76  
77 This library is free software. You can redistribute it and/or modify
78 it under the same terms as Perl itself.
79  
80 =cut
81  
82 1 1;
« example/lib/MyApp/View/TT.pm ↑ Summary tutorial/lib/MyApp/Controller/API.pm »